<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-11 14:15:52 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>git sparse-checkout</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Git">
                                Git                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="92a46ad193244b18a2699803a9e1de3ca1748e9d337d1103ac53cca2cf13dcd8/56" data-source="git-sparse-checkout" onmousemove="i18n(this)">git-sparse-checkout</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="ab162a3c344b69b09f586f590be2653bad63ccf2ba4006c1f8c69aee20062845/87" data-source="git-sparse-checkout - Reduce your working tree to a subset of tracked files" onmousemove="i18n(this)">git-sparse-checkout &mdash; &Scy;&ocy;&kcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy; &dcy;&ocy; &pcy;&ocy;&dcy;&mcy;&ncy;&ocy;&zhcy;&iecy;&scy;&tcy;&vcy;&acy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <div> <pre class="hljs language-csharp">git sparse-checkout (<span class="hljs-keyword">init</span> | list | <span class="hljs-keyword">set</span> | <span class="hljs-keyword">add</span> | reapply | disable | check-rules) [&lt;options&gt;]</pre> </div> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="5ba974f853933c918019fc81c05b19f0804e7a91e141f92af2c1b61117d1f18a/82" data-source="This command is used to create sparse checkouts, which change the working tree from having all tracked files present to only having a subset of those files. It can also switch which subset of files are present, or undo and go back to having all tracked files present in the working copy." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ycy;&khcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&ocy;&kcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &mcy;&iecy;&ncy;&yacy;&yucy;&tcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy;: &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&icy;&yacy; &vcy;&scy;&iecy;&khcy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &ncy;&acy; &ncy;&acy;&lcy;&icy;&chcy;&icy;&iecy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&ocy;&dcy;&mcy;&ncy;&ocy;&zhcy;&iecy;&scy;&tcy;&vcy;&acy; &ecy;&tcy;&icy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;. &Ocy;&ncy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy;, &kcy;&acy;&kcy;&ocy;&iecy; &pcy;&ocy;&dcy;&mcy;&ncy;&ocy;&zhcy;&iecy;&scy;&tcy;&vcy;&ocy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;, &icy;&lcy;&icy; &ocy;&tcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&yucy; &icy; &vcy;&iecy;&rcy;&ncy;&ucy;&tcy;&softcy;&scy;&yacy; &kcy; &ncy;&acy;&lcy;&icy;&chcy;&icy;&yucy; &vcy;&scy;&iecy;&khcy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&jcy; &kcy;&ocy;&pcy;&icy;&icy;.</span></p> <p><span data-i18n="2cd5f30b5421b5d42fdeb15bfb590c72329f9e30afe62eb8d357f6ec38793a6c/c6" data-source="The subset of files is chosen by providing a list of directories in cone mode (the default), or by providing a list of patterns in non-cone mode." onmousemove="i18n(this)">&Pcy;&ocy;&dcy;&mcy;&ncy;&ocy;&zhcy;&iecy;&scy;&tcy;&vcy;&ocy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &vcy;&ycy;&bcy;&icy;&rcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&ucy;&tcy;&iecy;&mcy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &scy;&pcy;&icy;&scy;&kcy;&acy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&vcy; &vcy; &kcy;&ocy;&ncy;&ucy;&scy;&ncy;&ocy;&mcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; (&pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;) &icy;&lcy;&icy; &pcy;&ucy;&tcy;&iecy;&mcy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &scy;&pcy;&icy;&scy;&kcy;&acy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy; &vcy; &ncy;&iecy;&kcy;&ocy;&ncy;&ucy;&scy;&ncy;&ocy;&mcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy;.</span></p> <p><span data-i18n="10c7a2233bec4d456aa691cb4324f643c9ff19b0c767f7d0bb70da2ac2ac906b/6c" data-source="When in a sparse-checkout, other Git commands behave a bit differently. For example, switching branches will not update paths outside the sparse-checkout directories/patterns, and &lt;code&gt;git commit -a&lt;/code&gt; will not record paths outside the sparse-checkout directories/patterns as deleted." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&iecy; &dcy;&rcy;&ucy;&gcy;&icy;&iecy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  Git  &vcy;&iecy;&dcy;&ucy;&tcy; &scy;&iecy;&bcy;&yacy; &ncy;&iecy;&mcy;&ncy;&ocy;&gcy;&ocy; &pcy;&ocy;-&dcy;&rcy;&ucy;&gcy;&ocy;&mcy;&ucy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &pcy;&iecy;&rcy;&iecy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&iecy; &vcy;&iecy;&tcy;&vcy;&iecy;&jcy; &ncy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&tcy;&softcy; &pcy;&ucy;&tcy;&icy; &zcy;&acy; &pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&acy;&mcy;&icy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&vcy;/&shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy;, &acy;  <code>git commit -a</code>  &ncy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&tcy;&softcy; &pcy;&ucy;&tcy;&icy; &zcy;&acy; &pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&acy;&mcy;&icy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&vcy;/&shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &kcy;&acy;&kcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy;.</span></p> <p><span data-i18n="fc73fa68dc05f6f2fe0e4082b3fbd6f8762171be73961d17a5d16df8b17a15ed/93" data-source="THIS COMMAND IS EXPERIMENTAL. ITS BEHAVIOR, AND THE BEHAVIOR OF OTHER COMMANDS IN THE PRESENCE OF SPARSE-CHECKOUTS, WILL LIKELY CHANGE IN THE FUTURE." onmousemove="i18n(this)">&Ecy;&Tcy;&Acy; &Kcy;&Ocy;&Mcy;&Acy;&Ncy;&Dcy;&Acy; &Ecy;&Kcy;&Scy;&Pcy;&IEcy;&Rcy;&Icy;&Mcy;&IEcy;&Ncy;&Tcy;&Acy;&Lcy;&SOFTcy;&Ncy;&Acy;&YAcy;. &IEcy;&IEcy; &Pcy;&Ocy;&Vcy;&IEcy;&Dcy;&IEcy;&Ncy;&Icy;&IEcy; &Icy; &Pcy;&Ocy;&Vcy;&IEcy;&Dcy;&IEcy;&Ncy;&Icy;&IEcy; &Dcy;&Rcy;&Ucy;&Gcy;&Icy;&KHcy; &Kcy;&Ocy;&Mcy;&Acy;&Ncy;&Dcy; &Pcy;&Rcy;&Icy; &Ncy;&Acy;&Lcy;&Icy;&CHcy;&Icy;&Icy; SSPARSE-CHECKOUTS, &Vcy;&IEcy;&Rcy;&Ocy;&YAcy;&Tcy;&Ncy;&Ocy;, &Icy;&Zcy;&Mcy;&IEcy;&Ncy;&Icy;&Tcy;&Scy;&YAcy; &Vcy; &Bcy;&Ucy;&Dcy;&Ucy;&SHCHcy;&IEcy;&Mcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_commands"><span data-i18n="b269dc4e81a528a4d42e9e74101923514a626f55f8dd76b1461e0690e72d041a/f5" data-source="Commands" onmousemove="i18n(this)">Commands</span></h2> <div> <div> <dl> <dt id="Documentation/git-sparse-checkout.txt-emlistem"> <span data-i18n="cb189b5addf9ce26309eed9755a432fa95ea3abd0e304ca0f813a6b218a12d44/17" data-source="&lt;em&gt;list&lt;/em&gt;" onmousemove="i18n(this)"><em>list</em></span> </dt> <dd> <p><span data-i18n="128c9e2de20d41caf685670cde1ef37f742790f3e2495c04ed6e1fa4fb1d6cca/c0" data-source="Describe the directories or patterns in the sparse-checkout file." onmousemove="i18n(this)">&Ocy;&pcy;&icy;&shcy;&icy;&tcy;&iecy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&icy; &icy;&lcy;&icy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &vcy; &fcy;&acy;&jcy;&lcy;&iecy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy;.</span></p> </dd> <dt id="Documentation/git-sparse-checkout.txt-emsetem"> <span data-i18n="c75af923d45858990c187e713e46569a6a9f8c76bb117a04adb01dec408f5c8c/47" data-source="&lt;em&gt;set&lt;/em&gt;" onmousemove="i18n(this)"><em>set</em></span> </dt> <dd> <p><span data-i18n="d0a828574939094df9f608bbd96cd08b5c546ef34fb9a2ea16e9859d3ac27b34/1c" data-source="Enable the necessary sparse-checkout config settings (&lt;code&gt;core.sparseCheckout&lt;/code&gt;, &lt;code&gt;core.sparseCheckoutCone&lt;/code&gt;, and &lt;code&gt;index.sparse&lt;/code&gt;) if they are not already set to the desired values, populate the sparse-checkout file from the list of arguments following the &lt;code&gt;set&lt;/code&gt; subcommand, and update the working directory to match." onmousemove="i18n(this)">&Vcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&iecy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ycy;&iecy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; (  <code>core.sparseCheckout</code>  ,  <code>core.sparseCheckoutCone</code>  &icy;  <code>index.sparse</code>  ), &iecy;&scy;&lcy;&icy; &dcy;&lcy;&yacy; &ncy;&icy;&khcy; &iecy;&shchcy;&iecy; &ncy;&iecy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ycy; &ncy;&ucy;&zhcy;&ncy;&ycy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy;, &zcy;&acy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy; &fcy;&acy;&jcy;&lcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &icy;&zcy; &scy;&pcy;&icy;&scy;&kcy;&acy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy;, &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&khcy; &zcy;&acy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ocy;&jcy;  <code>set</code> , &icy; &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&iecy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&ncy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&lcy; .</span></p> <p><span data-i18n="28622ae638b95aa59aae7aaa39cbbe880f150fe8c60375be517bcfefb74f86f6/43" data-source="To ensure that adjusting the sparse-checkout settings within a worktree does not alter the sparse-checkout settings in other worktrees, the &lt;code&gt;set&lt;/code&gt; subcommand will upgrade your repository config to use worktree-specific config if not already present. The sparsity defined by the arguments to the &lt;code&gt;set&lt;/code&gt; subcommand are stored in the worktree-specific sparse-checkout file. See &lt;a href=&quot;git-worktree&quot;&gt;git-worktree[1]&lt;/a&gt; and the documentation of &lt;code&gt;extensions.worktreeConfig&lt;/code&gt; in &lt;a href=&quot;git-config&quot;&gt;git-config[1]&lt;/a&gt; for more details." onmousemove="i18n(this)">&CHcy;&tcy;&ocy;&bcy;&ycy; &gcy;&acy;&rcy;&acy;&ncy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy;, &chcy;&tcy;&ocy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&acy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy; &ncy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&icy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &vcy; &dcy;&rcy;&ucy;&gcy;&icy;&khcy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&khcy; &dcy;&iecy;&rcy;&iecy;&vcy;&softcy;&yacy;&khcy;, &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>set</code>  &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&yucy; &vcy;&acy;&shcy;&iecy;&gcy;&ocy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;, &chcy;&tcy;&ocy;&bcy;&ycy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&yucy;, &scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&chcy;&ncy;&ucy;&yucy; &dcy;&lcy;&yacy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy;&acy; &iecy;&shchcy;&iecy; &ncy;&iecy; &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;. &Rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&scy;&tcy;&softcy;, &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&acy;&yacy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&mcy;&icy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>set</code> , &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &vcy; &fcy;&acy;&jcy;&lcy;&iecy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy;, &scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&chcy;&ncy;&ocy;&mcy; &dcy;&lcy;&yacy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;. &Bcy;&ocy;&lcy;&iecy;&iecy; &pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ucy;&yucy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; &scy;&mcy;. &vcy;  <a href="git-worktree.html">git-worktree[1]</a>  &icy; &dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&tscy;&icy;&icy;  <code>extensions.worktreeConfig</code>  &vcy;  <a href="git-config.html">git-config[1]</a> .</span></p> <p><span data-i18n="e8a4fabee3e97f0499a4c96f4b1efe6e2a5b8a53a9c3d4afa7f0b9d424e6b5e8/ba" data-source="When the &lt;code&gt;--stdin&lt;/code&gt; option is provided, the directories or patterns are read from standard in as a newline-delimited list instead of from the arguments." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&acy; &ocy;&pcy;&tscy;&icy;&yacy;  <code>--stdin</code> , &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&icy; &icy;&lcy;&icy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &scy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &icy;&zcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&acy; &vcy; &vcy;&icy;&dcy;&iecy; &scy;&pcy;&icy;&scy;&kcy;&acy;, &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ncy;&ocy;&vcy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&ocy;&jcy;, &acy; &ncy;&iecy; &icy;&zcy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy;.</span></p> <p><span data-i18n="421074dcab45e2ae3e581eb6166750c2254987a93dde4107f2778ad48ccf4d9a/43" data-source="By default, the input list is considered a list of directories, matching the output of &lt;code&gt;git ls-tree -d --name-only&lt;/code&gt;. This includes interpreting pathnames that begin with a double quote (&amp;quot;) as C-style quoted strings. Note that all files under the specified directories (at any depth) will be included in the sparse checkout, as well as files that are siblings of either the given directory or any of its ancestors (see &lt;code&gt;CONE PATTERN SET&lt;/code&gt; below for more details). In the past, this was not the default, and &lt;code&gt;--cone&lt;/code&gt; needed to be specified or &lt;code&gt;core.sparseCheckoutCone&lt;/code&gt; needed to be enabled." onmousemove="i18n(this)">&Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &vcy;&khcy;&ocy;&dcy;&ncy;&ocy;&jcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &scy;&chcy;&icy;&tcy;&acy;&iecy;&tcy;&scy;&yacy; &scy;&pcy;&icy;&scy;&kcy;&ocy;&mcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&vcy;, &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&mcy; &vcy;&ycy;&khcy;&ocy;&dcy;&ncy;&ycy;&mcy; &dcy;&acy;&ncy;&ncy;&ycy;&mcy;  <code>git ls-tree -d --name-only</code> . &Ecy;&tcy;&ocy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&iecy;&tcy; &vcy; &scy;&iecy;&bcy;&yacy; &icy;&ncy;&tcy;&iecy;&rcy;&pcy;&rcy;&iecy;&tcy;&acy;&tscy;&icy;&yucy; &icy;&mcy;&iecy;&ncy; &pcy;&ucy;&tcy;&iecy;&jcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&acy;&chcy;&icy;&ncy;&acy;&yucy;&tcy;&scy;&yacy; &scy; &dcy;&vcy;&ocy;&jcy;&ncy;&ocy;&jcy; &kcy;&acy;&vcy;&ycy;&chcy;&kcy;&icy; (&quot;&quot;), &kcy;&acy;&kcy; &scy;&tcy;&rcy;&ocy;&kcy; &vcy; &kcy;&acy;&vcy;&ycy;&chcy;&kcy;&acy;&khcy; &vcy; &scy;&tcy;&icy;&lcy;&iecy; C. &Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &vcy;&scy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ycy;&khcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;&khcy; (&ncy;&acy; &lcy;&yucy;&bcy;&ocy;&jcy; &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&iecy;) &bcy;&ucy;&dcy;&ucy;&tcy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ycy; &vcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ucy;&yucy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&ucy;, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &yacy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &bcy;&rcy;&acy;&tcy;&softcy;&yacy;&mcy;&icy; &icy; &scy;&iecy;&scy;&tcy;&rcy;&acy;&mcy;&icy; &lcy;&yucy;&bcy;&ocy;&gcy;&ocy; &icy;&zcy; &ncy;&icy;&khcy;. &dcy;&acy;&ncy;&ncy;&ycy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &icy;&lcy;&icy; &lcy;&yucy;&bcy;&ocy;&jcy; &icy;&zcy; &iecy;&gcy;&ocy; &pcy;&rcy;&iecy;&dcy;&kcy;&ocy;&vcy; (&pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&iecy;&iecy; &scy;&mcy;.  <code>CONE PATTERN SET</code>  &ncy;&icy;&zhcy;&iecy;). &Rcy;&acy;&ncy;&softcy;&shcy;&iecy; &ecy;&tcy;&ocy; &ncy;&iecy; &bcy;&ycy;&lcy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;&mcy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &icy; &ncy;&ucy;&zhcy;&ncy;&ocy; &bcy;&ycy;&lcy;&ocy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy;  <code>--cone</code>  &icy;&lcy;&icy; &vcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&softcy;  <code>core.sparseCheckoutCone</code> .</span></p> <p><span data-i18n="d650bd12a0be3f570ceae1632f0eba3557810443533ec0d84b70b976116c008f/be" data-source="When &lt;code&gt;--no-cone&lt;/code&gt; is passed, the input list is considered a list of patterns. This mode has a number of drawbacks, including not working with some options like &lt;code&gt;--sparse-index&lt;/code&gt;. As explained in the &amp;quot;Non-cone Problems&amp;quot; section below, we do not recommend using it." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&iecy;  <code>--no-cone</code>  &vcy;&khcy;&ocy;&dcy;&ncy;&ocy;&jcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &scy;&chcy;&icy;&tcy;&acy;&iecy;&tcy;&scy;&yacy; &scy;&pcy;&icy;&scy;&kcy;&ocy;&mcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy;. &Ecy;&tcy;&ocy;&tcy; &rcy;&iecy;&zhcy;&icy;&mcy; &icy;&mcy;&iecy;&iecy;&tcy; &rcy;&yacy;&dcy; &ncy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&tcy;&kcy;&ocy;&vcy;, &vcy; &tcy;&ocy;&mcy; &chcy;&icy;&scy;&lcy;&iecy; &ncy;&iecy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&iecy;&tcy; &scy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&mcy;&icy; &ocy;&pcy;&tscy;&icy;&yacy;&mcy;&icy; &tcy;&icy;&pcy;&acy;  <code>--sparse-index</code> . &Kcy;&acy;&kcy; &pcy;&ocy;&yacy;&scy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &vcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy;  &quot;Non-cone Problems&quot;  &ncy;&icy;&zhcy;&iecy;, &mcy;&ycy; &ncy;&iecy; &rcy;&iecy;&kcy;&ocy;&mcy;&iecy;&ncy;&dcy;&ucy;&iecy;&mcy; &iecy;&gcy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;.</span></p> <p><span data-i18n="288ba0f912a0d1a6d7c295a41ba3301ac10fbd35aeedf7ed4f2824224dc39a90/03" data-source="Use the &lt;code&gt;--[no-]sparse-index&lt;/code&gt; option to use a sparse index (the default is to not use it). A sparse index reduces the size of the index to be more closely aligned with your sparse-checkout definition. This can have significant performance advantages for commands such as &lt;code&gt;git status&lt;/code&gt; or &lt;code&gt;git add&lt;/code&gt;. This feature is still experimental. Some commands might be slower with a sparse index until they are properly integrated with the feature." onmousemove="i18n(this)">&Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;  <code>--[no-]sparse-index</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ycy;&jcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; (&pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &ocy;&ncy; &ncy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy;). &Rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ycy;&jcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &ucy;&mcy;&iecy;&ncy;&softcy;&shcy;&acy;&iecy;&tcy; &rcy;&acy;&zcy;&mcy;&iecy;&rcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&ncy; &bcy;&ycy;&lcy; &bcy;&ocy;&lcy;&iecy;&iecy; &tcy;&ocy;&chcy;&ncy;&ocy; &scy;&ocy;&gcy;&lcy;&acy;&scy;&ocy;&vcy;&acy;&ncy; &scy; &vcy;&acy;&shcy;&icy;&mcy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&icy;&iecy;&mcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy;. &Ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &dcy;&acy;&tcy;&softcy; &zcy;&ncy;&acy;&chcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &pcy;&rcy;&iecy;&icy;&mcy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&acy; &vcy; &pcy;&rcy;&ocy;&icy;&zcy;&vcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&scy;&tcy;&icy; &dcy;&lcy;&yacy; &tcy;&acy;&kcy;&icy;&khcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;, &kcy;&acy;&kcy;  <code>git status</code>  &icy;&lcy;&icy;  <code>git add</code> . &Ecy;&tcy;&acy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&yacy; &vcy;&scy;&iecy; &iecy;&shchcy;&iecy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ecy;&kcy;&scy;&pcy;&iecy;&rcy;&icy;&mcy;&iecy;&ncy;&tcy;&acy;&lcy;&softcy;&ncy;&ocy;&jcy;. &Ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &mcy;&ocy;&gcy;&ucy;&tcy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&tcy;&softcy; &mcy;&iecy;&dcy;&lcy;&iecy;&ncy;&ncy;&iecy;&iecy; &icy;&zcy;-&zcy;&acy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy;, &pcy;&ocy;&kcy;&acy; &ocy;&ncy;&icy; &ncy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy; &icy;&ncy;&tcy;&iecy;&gcy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ycy; &scy; &ecy;&tcy;&ocy;&jcy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&iecy;&jcy;.</span></p> <p><span data-i18n="700c41b3be141dbf0b067cd0a2d925e69aa4df00cd7fe49e6aa1f349cbf069f3/a3" data-source="&lt;strong&gt;WARNING:&lt;/strong&gt; Using a sparse index requires modifying the index in a way that is not completely understood by external tools. If you have trouble with this compatibility, then run &lt;code&gt;git sparse-checkout init --no-sparse-index&lt;/code&gt; to rewrite your index to not be sparse. Older versions of Git will not understand the sparse directory entries index extension and may fail to interact with your repository until it is disabled." onmousemove="i18n(this)">&Vcy;&Ncy;&Icy;&Mcy;&Acy;&Ncy;&Icy;&IEcy;: &Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy; &tcy;&rcy;&iecy;&bcy;&ucy;&iecy;&tcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy; &tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &ncy;&iecy; &scy;&ocy;&vcy;&scy;&iecy;&mcy; &pcy;&ocy;&ncy;&yacy;&tcy;&iecy;&ncy; &vcy;&ncy;&iecy;&shcy;&ncy;&icy;&mcy; &icy;&ncy;&scy;&tcy;&rcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&mcy;. &IEcy;&scy;&lcy;&icy; &ucy; &vcy;&acy;&scy; &vcy;&ocy;&zcy;&ncy;&icy;&kcy;&lcy;&icy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy;&ycy; &scy; &ecy;&tcy;&ocy;&jcy; &scy;&ocy;&vcy;&mcy;&iecy;&scy;&tcy;&icy;&mcy;&ocy;&scy;&tcy;&softcy;&yucy;, &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&iecy;  <code>git sparse-checkout init --no-sparse-index</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&iecy;&rcy;&iecy;&pcy;&icy;&scy;&acy;&tcy;&softcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&ncy; &ncy;&iecy; &bcy;&ycy;&lcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ycy;&mcy;. &Bcy;&ocy;&lcy;&iecy;&iecy; &scy;&tcy;&acy;&rcy;&ycy;&iecy; &vcy;&iecy;&rcy;&scy;&icy;&icy;  Git  &ncy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &pcy;&ocy;&ncy;&icy;&mcy;&acy;&tcy;&softcy; &rcy;&acy;&scy;&shcy;&icy;&rcy;&iecy;&ncy;&icy;&iecy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ycy;&khcy; &zcy;&acy;&pcy;&icy;&scy;&iecy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy; &icy; &mcy;&ocy;&gcy;&ucy;&tcy; &ncy;&iecy; &vcy;&zcy;&acy;&icy;&mcy;&ocy;&dcy;&iecy;&jcy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&tcy;&softcy; &scy; &vcy;&acy;&shcy;&icy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&iecy;&mcy;, &pcy;&ocy;&kcy;&acy; &ocy;&ncy;&ocy; &ncy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &ocy;&tcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ocy;.</span></p> </dd> <dt id="Documentation/git-sparse-checkout.txt-emaddem"> <span data-i18n="42789d98df8b618e5f8ca222d9702ee481f73be341296638a01b545f95f73617/bf" data-source="&lt;em&gt;add&lt;/em&gt;" onmousemove="i18n(this)"><em>add</em></span> </dt> <dd> <p><span data-i18n="e0203095fd45c54391f691ec8aa67d300a59d32ce2c6be58d52df67448031641/52" data-source="Update the sparse-checkout file to include additional directories (in cone mode) or patterns (in non-cone mode). By default, these directories or patterns are read from the command-line arguments, but they can be read from stdin using the &lt;code&gt;--stdin&lt;/code&gt; option." onmousemove="i18n(this)">&Ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&iecy; &fcy;&acy;&jcy;&lcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy;, &vcy;&kcy;&lcy;&yucy;&chcy;&icy;&vcy; &vcy; &ncy;&iecy;&gcy;&ocy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&icy; (&vcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; &kcy;&ocy;&ncy;&ucy;&scy;&acy;) &icy;&lcy;&icy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; (&vcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; &bcy;&iecy;&zcy; &kcy;&ocy;&ncy;&ucy;&scy;&acy;). &Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &ecy;&tcy;&icy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&icy; &icy;&lcy;&icy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &scy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &icy;&zcy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;, &ncy;&ocy; &icy;&khcy; &mcy;&ocy;&zhcy;&ncy;&ocy; &pcy;&rcy;&ocy;&chcy;&icy;&tcy;&acy;&tcy;&softcy; &icy;&zcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ocy;&gcy;&ocy; &vcy;&vcy;&ocy;&dcy;&acy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &ocy;&pcy;&tscy;&icy;&icy;  <code>--stdin</code> .</span></p> </dd> <dt id="Documentation/git-sparse-checkout.txt-emreapplyem"> <span data-i18n="52d941733b49e096a0655ff54a18fe1508d942b6a6b19ed492feccac8106c70d/52" data-source="&lt;em&gt;reapply&lt;/em&gt;" onmousemove="i18n(this)"><em>reapply</em></span> </dt> <dd> <p><span data-i18n="4fd16189415d358252ca0b4ac7d425896e12ad07d8f70d7ceffabbb3caa12f79/0d" data-source="Reapply the sparsity pattern rules to paths in the working tree. Commands like merge or rebase can materialize paths to do their work (e.g. in order to show you a conflict), and other sparse-checkout commands might fail to sparsify an individual file (e.g. because it has unstaged changes or conflicts). In such cases, it can make sense to run &lt;code&gt;git sparse-checkout reapply&lt;/code&gt; later after cleaning up affected paths (e.g. resolving conflicts, undoing or committing changes, etc.)." onmousemove="i18n(this)">&Pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&icy;&tcy;&iecy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&acy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&acy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&scy;&tcy;&icy; &kcy; &pcy;&ucy;&tcy;&yacy;&mcy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy;. &Tcy;&acy;&kcy;&icy;&iecy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;, &kcy;&acy;&kcy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy; &icy;&lcy;&icy; &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy;, &mcy;&ocy;&gcy;&ucy;&tcy; &mcy;&acy;&tcy;&iecy;&rcy;&icy;&acy;&lcy;&icy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &pcy;&ucy;&tcy;&icy; &dcy;&lcy;&yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &scy;&vcy;&ocy;&iecy;&jcy; &rcy;&acy;&bcy;&ocy;&tcy;&ycy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&ocy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &vcy;&acy;&mcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;), &acy; &dcy;&rcy;&ucy;&gcy;&icy;&iecy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &mcy;&ocy;&gcy;&ucy;&tcy; &ncy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&softcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&icy;&iecy; &ocy;&tcy;&dcy;&iecy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &icy;&zcy;-&zcy;&acy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy; &vcy; &ncy;&iecy;&mcy; &iecy;&scy;&tcy;&softcy; &ncy;&iecy;&pcy;&rcy;&ocy;&icy;&ncy;&dcy;&iecy;&kcy;&scy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &icy;&lcy;&icy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ycy;). &Vcy; &tcy;&acy;&kcy;&icy;&khcy; &scy;&lcy;&ucy;&chcy;&acy;&yacy;&khcy; &icy;&mcy;&iecy;&iecy;&tcy; &scy;&mcy;&ycy;&scy;&lcy; &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&softcy;  <code>git sparse-checkout reapply</code>  &pcy;&ocy;&zcy;&zhcy;&iecy;, &pcy;&ocy;&scy;&lcy;&iecy; &ocy;&chcy;&icy;&scy;&tcy;&kcy;&icy; &zcy;&acy;&tcy;&rcy;&ocy;&ncy;&ucy;&tcy;&ycy;&khcy; &pcy;&ucy;&tcy;&iecy;&jcy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ocy;&vcy;, &ocy;&tcy;&mcy;&iecy;&ncy;&ycy; &icy;&lcy;&icy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &icy; &tcy;. &dcy;.).</span></p> <p><span data-i18n="6cb8c61474b22992d79da5bfc322c05382ab864c063fb3bd52e2a21b78b4ef78/0c" data-source="The &lt;code&gt;reapply&lt;/code&gt; command can also take &lt;code&gt;--[no-]cone&lt;/code&gt; and &lt;code&gt;--[no-]sparse-index&lt;/code&gt; flags, with the same meaning as the flags from the &lt;code&gt;set&lt;/code&gt; command, in order to change which sparsity mode you are using without needing to also respecify all sparsity paths." onmousemove="i18n(this)">&Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>reapply</code>  &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&tcy;&softcy; &fcy;&lcy;&acy;&gcy;&icy;  <code>--[no-]cone</code>  &icy;  <code>--[no-]sparse-index</code>  &scy; &tcy;&iecy;&mcy; &zhcy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;&mcy;, &chcy;&tcy;&ocy; &icy; &fcy;&lcy;&acy;&gcy;&icy; &icy;&zcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>set</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&mcy;&ycy;&jcy; &rcy;&iecy;&zhcy;&icy;&mcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&scy;&tcy;&icy; &bcy;&iecy;&zcy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &pcy;&iecy;&rcy;&iecy;&ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&icy;&yacy; &vcy;&scy;&iecy;&khcy; &pcy;&ucy;&tcy;&iecy;&jcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&scy;&tcy;&icy;.</span></p> </dd> <dt id="Documentation/git-sparse-checkout.txt-emdisableem"> <span data-i18n="0d2dcd0bf170e457b9bc515ac2619e59f6d0f755b6c63b3783e977b08f4fd267/d4" data-source="&lt;em&gt;disable&lt;/em&gt;" onmousemove="i18n(this)"><em>disable</em></span> </dt> <dd> <p><span data-i18n="bee84e62ed2d0cb6cba7a72713412958c5102665a678512008c2de66d905b556/14" data-source="Disable the &lt;code&gt;core.sparseCheckout&lt;/code&gt; config setting, and restore the working directory to include all files." onmousemove="i18n(this)">&Ocy;&tcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&iecy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&ucy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>core.sparseCheckout</code>  &icy; &vcy;&ocy;&scy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&iecy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;, &vcy;&kcy;&lcy;&yucy;&chcy;&icy;&vcy; &vcy; &ncy;&iecy;&gcy;&ocy; &vcy;&scy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;.</span></p> </dd> <dt id="Documentation/git-sparse-checkout.txt-eminitem"> <span data-i18n="6ab7a12673733fc9cdee36e37b26fffe5e6090ea6d3f4566f57281221e3eb2e1/01" data-source="&lt;em&gt;init&lt;/em&gt;" onmousemove="i18n(this)"><em>init</em></span> </dt> <dd> <p><span data-i18n="3102cec386404311d4e37208a5c2eea2c49ac598d09f6324201f2147cbfc729e/4d" data-source="Deprecated command that behaves like &lt;code&gt;set&lt;/code&gt; with no specified paths. May be removed in the future." onmousemove="i18n(this)">&Ucy;&scy;&tcy;&acy;&rcy;&iecy;&vcy;&shcy;&acy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;, &vcy;&iecy;&dcy;&ucy;&shchcy;&acy;&yacy; &scy;&iecy;&bcy;&yacy; &kcy;&acy;&kcy;  <code>set</code> , &bcy;&iecy;&zcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&icy;&yacy; &pcy;&ucy;&tcy;&iecy;&jcy;. &Vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;, &vcy; &bcy;&ucy;&dcy;&ucy;&shchcy;&iecy;&mcy; &bcy;&ucy;&dcy;&ucy;&tcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ycy;.</span></p> <p><span data-i18n="1f7208de4e88b20e85612fb1f8e0c638ea98f1f09f548da51077381b7a2cabe0/3b" data-source="Historically, &lt;code&gt;set&lt;/code&gt; did not handle all the necessary config settings, which meant that both &lt;code&gt;init&lt;/code&gt; and &lt;code&gt;set&lt;/code&gt; had to be called. Invoking both meant the &lt;code&gt;init&lt;/code&gt; step would first remove nearly all tracked files (and in cone mode, ignored files too), then the &lt;code&gt;set&lt;/code&gt; step would add many of the tracked files (but not ignored files) back. In addition to the lost files, the performance and UI of this combination was poor." onmousemove="i18n(this)">&Icy;&scy;&tcy;&ocy;&rcy;&icy;&chcy;&iecy;&scy;&kcy;&icy; &scy;&lcy;&ocy;&zhcy;&icy;&lcy;&ocy;&scy;&softcy; &tcy;&acy;&kcy;, &chcy;&tcy;&ocy;  <code>set</code>  &ncy;&iecy; &ocy;&bcy;&rcy;&acy;&bcy;&acy;&tcy;&ycy;&vcy;&acy;&lcy; &vcy;&scy;&iecy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ycy;&iecy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&icy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;, &acy; &ecy;&tcy;&ocy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&lcy;&ocy;, &chcy;&tcy;&ocy; &pcy;&rcy;&icy;&khcy;&ocy;&dcy;&icy;&lcy;&ocy;&scy;&softcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&tcy;&softcy; &kcy;&acy;&kcy;  <code>init</code> , &tcy;&acy;&kcy; &icy;  <code>set</code> . &Vcy;&ycy;&zcy;&ocy;&vcy; &ocy;&bcy;&ocy;&icy;&khcy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&lcy;, &chcy;&tcy;&ocy; &shcy;&acy;&gcy;  <code>init</code>  &scy;&ncy;&acy;&chcy;&acy;&lcy;&acy; &ucy;&dcy;&acy;&lcy;&icy;&tcy; &pcy;&ocy;&chcy;&tcy;&icy; &vcy;&scy;&iecy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; (&acy; &vcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; &kcy;&ocy;&ncy;&ucy;&scy;&acy; &icy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;), &zcy;&acy;&tcy;&iecy;&mcy; &shcy;&acy;&gcy;  <code>set</code>  &dcy;&ocy;&bcy;&acy;&vcy;&icy;&tcy; &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ocy; &mcy;&ncy;&ocy;&gcy;&icy;&iecy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; (&ncy;&ocy; &ncy;&iecy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;). &Pcy;&ocy;&mcy;&icy;&mcy;&ocy; &pcy;&ocy;&tcy;&iecy;&rcy;&yacy;&ncy;&ncy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &pcy;&rcy;&ocy;&icy;&zcy;&vcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&scy;&tcy;&softcy; &icy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&jcy; &icy;&ncy;&tcy;&iecy;&rcy;&fcy;&iecy;&jcy;&scy; &ecy;&tcy;&ocy;&jcy; &kcy;&ocy;&mcy;&bcy;&icy;&ncy;&acy;&tscy;&icy;&icy; &bcy;&ycy;&lcy;&icy; &pcy;&lcy;&ocy;&khcy;&icy;&mcy;&icy;.</span></p> <p><span data-i18n="a6c8505a95045fee89ed404e9a2dc7c8908bc036c4a05adbca8c0a1e68cd6b0e/20" data-source="Also, historically, &lt;code&gt;init&lt;/code&gt; would not actually initialize the sparse-checkout file if it already existed. This meant it was possible to return to a sparse-checkout without remembering which paths to pass to a subsequent &lt;code&gt;set&lt;/code&gt; or &lt;code&gt;add&lt;/code&gt; command. However, &lt;code&gt;--cone&lt;/code&gt; and &lt;code&gt;--sparse-index&lt;/code&gt; options would not be remembered across the disable command, so the easy restore of calling a plain &lt;code&gt;init&lt;/code&gt; decreased in utility." onmousemove="i18n(this)">&Kcy;&rcy;&ocy;&mcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &icy;&scy;&tcy;&ocy;&rcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;  <code>init</code>  &fcy;&acy;&kcy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy; &ncy;&iecy; &icy;&ncy;&icy;&tscy;&icy;&acy;&lcy;&icy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&lcy; &fcy;&acy;&jcy;&lcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy; &ucy;&zhcy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&lcy;. &Ecy;&tcy;&ocy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&lcy;&ocy;, &chcy;&tcy;&ocy; &mcy;&ocy;&zhcy;&ncy;&ocy; &bcy;&ycy;&lcy;&ocy; &vcy;&iecy;&rcy;&ncy;&ucy;&tcy;&softcy;&scy;&yacy; &kcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&iecy;, &ncy;&iecy; &zcy;&acy;&pcy;&ocy;&mcy;&icy;&ncy;&acy;&yacy;, &kcy;&acy;&kcy;&icy;&iecy; &pcy;&ucy;&tcy;&icy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&tcy;&softcy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&jcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&iecy;  <code>set</code>  &icy;&lcy;&icy;  <code>add</code> . &Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy;  <code>--cone</code>  &icy;  <code>--sparse-index</code>  &ncy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &zcy;&acy;&pcy;&ocy;&mcy;&icy;&ncy;&acy;&tcy;&softcy;&scy;&yacy; &pcy;&rcy;&icy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&iecy; &ocy;&tcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&yacy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy;&iecy; &vcy;&ocy;&scy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &vcy;&ycy;&zcy;&ocy;&vcy;&acy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy;&gcy;&ocy;  <code>init</code>  &tcy;&iecy;&rcy;&yacy;&iecy;&tcy; &scy;&vcy;&ocy;&yucy; &pcy;&ocy;&lcy;&iecy;&zcy;&ncy;&ocy;&scy;&tcy;&softcy;.</span></p> </dd> <dt id="Documentation/git-sparse-checkout.txt-emcheck-rulesem"> <span data-i18n="29c59db9d882d26cd95f77759fd4343d65934bb12cef3f897f304e5a23e5d137/33" data-source="&lt;em&gt;check-rules&lt;/em&gt;" onmousemove="i18n(this)"><em>check-rules</em></span> </dt> <dd> <p><span data-i18n="c75fd9f449ca1975086c6743f94377d0be8fe86bd001cd6e41cece49fbb1c237/cd" data-source="Check whether sparsity rules match one or more paths." onmousemove="i18n(this)">&Pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&softcy;&tcy;&iecy;, &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy; &lcy;&icy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&acy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&scy;&tcy;&icy; &ocy;&dcy;&ncy;&ocy;&mcy;&ucy; &icy;&lcy;&icy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&icy;&mcy; &pcy;&ucy;&tcy;&yacy;&mcy;.</span></p> <p><span data-i18n="409d394e1dd368fe6edf66e31edccaed5b58bcf1c0dc4bca0e6720779f521a23/ea" data-source="By default &lt;code&gt;check-rules&lt;/code&gt; reads a list of paths from stdin and outputs only the ones that match the current sparsity rules. The input is expected to consist of one path per line, matching the output of &lt;code&gt;git ls-tree --name-only&lt;/code&gt; including that pathnames that begin with a double quote (&amp;quot;) are interpreted as C-style quoted strings." onmousemove="i18n(this)">&Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;  <code>check-rules</code>  &scy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &pcy;&ucy;&tcy;&iecy;&jcy; &icy;&zcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ocy;&gcy;&ocy; &vcy;&vcy;&ocy;&dcy;&acy; &icy; &vcy;&ycy;&vcy;&ocy;&dcy;&icy;&tcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &tcy;&iecy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&mcy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&acy;&mcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&scy;&tcy;&icy;. &Ocy;&zhcy;&icy;&dcy;&acy;&iecy;&tcy;&scy;&yacy;, &chcy;&tcy;&ocy; &vcy;&khcy;&ocy;&dcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&tcy;&softcy; &icy;&zcy; &ocy;&dcy;&ncy;&ocy;&gcy;&ocy; &pcy;&ucy;&tcy;&icy; &vcy; &scy;&tcy;&rcy;&ocy;&kcy;&iecy;, &chcy;&tcy;&ocy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &vcy;&ycy;&khcy;&ocy;&dcy;&ncy;&ycy;&mcy; &dcy;&acy;&ncy;&ncy;&ycy;&mcy;  <code>git ls-tree --name-only</code> , &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&yacy; &tcy;&ocy;, &chcy;&tcy;&ocy; &icy;&mcy;&iecy;&ncy;&acy; &pcy;&ucy;&tcy;&iecy;&jcy;, &ncy;&acy;&chcy;&icy;&ncy;&acy;&yucy;&shchcy;&icy;&iecy;&scy;&yacy; &scy; &dcy;&vcy;&ocy;&jcy;&ncy;&ocy;&jcy; &kcy;&acy;&vcy;&ycy;&chcy;&kcy;&icy; (&quot;&quot;), &icy;&ncy;&tcy;&iecy;&rcy;&pcy;&rcy;&iecy;&tcy;&icy;&rcy;&ucy;&yucy;&tcy;&scy;&yacy; &kcy;&acy;&kcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &vcy; &kcy;&acy;&vcy;&ycy;&chcy;&kcy;&acy;&khcy; &vcy; &scy;&tcy;&icy;&lcy;&iecy; C.</span></p> <p><span data-i18n="a049743cb54158c6f1f25a0cbd88817f67a06d6646e482a29ba9d7c1bebd7eba/be" data-source="When called with the &lt;code&gt;--rules-file &amp;lt;file&amp;gt;&lt;/code&gt; flag the input files are matched against the sparse checkout rules found in &lt;code&gt;&amp;lt;file&amp;gt;&lt;/code&gt; instead of the current ones. The rules in the files are expected to be in the same form as accepted by &lt;code&gt;git
sparse-checkout set --stdin&lt;/code&gt; (in particular, they must be newline-delimited)." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &vcy;&ycy;&zcy;&ocy;&vcy;&iecy; &scy; &fcy;&lcy;&acy;&gcy;&ocy;&mcy;  <code>--rules-file &lt;file&gt;</code>  &vcy;&khcy;&ocy;&dcy;&ncy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &scy;&ocy;&pcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &scy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ycy;&mcy;&icy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&acy;&mcy;&icy; &icy;&zcy;&vcy;&lcy;&iecy;&chcy;&iecy;&ncy;&icy;&yacy;, &ncy;&acy;&jcy;&dcy;&iecy;&ncy;&ncy;&ycy;&mcy;&icy; &vcy;  <code>&lt;file&gt;</code> , &acy; &ncy;&iecy; &scy; &tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&mcy;&icy;. &Ocy;&zhcy;&icy;&dcy;&acy;&iecy;&tcy;&scy;&yacy;, &chcy;&tcy;&ocy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&acy; &vcy; &fcy;&acy;&jcy;&lcy;&acy;&khcy; &bcy;&ucy;&dcy;&ucy;&tcy; &icy;&mcy;&iecy;&tcy;&softcy; &tcy;&ucy; &zhcy;&iecy; &fcy;&ocy;&rcy;&mcy;&ucy;, &chcy;&tcy;&ocy; &icy; &pcy;&rcy;&icy;&ncy;&yacy;&tcy;&acy;&yacy;  <code>git
sparse-checkout set --stdin</code>  (&vcy; &chcy;&acy;&scy;&tcy;&ncy;&ocy;&scy;&tcy;&icy;, &ocy;&ncy;&icy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy; &bcy;&ycy;&tcy;&softcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy;&ncy;&ycy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&ocy;&mcy; &ncy;&ocy;&vcy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;).</span></p> <p><span data-i18n="007e353ace1337cd97c8fccf11fa24256191b6d95437b4d563e7907c67803a97/5c" data-source="By default, the rules passed to the &lt;code&gt;--rules-file&lt;/code&gt; option are interpreted as cone mode directories. To pass non-cone mode patterns with &lt;code&gt;--rules-file&lt;/code&gt;, combine the option with the &lt;code&gt;--no-cone&lt;/code&gt; option." onmousemove="i18n(this)">&Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&acy;, &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&vcy;&acy;&iecy;&mcy;&ycy;&iecy; &ocy;&pcy;&tscy;&icy;&icy;  <code>--rules-file</code> , &icy;&ncy;&tcy;&iecy;&rcy;&pcy;&rcy;&iecy;&tcy;&icy;&rcy;&ucy;&yucy;&tcy;&scy;&yacy; &kcy;&acy;&kcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&icy; &rcy;&iecy;&zhcy;&icy;&mcy;&acy; &kcy;&ocy;&ncy;&ucy;&scy;&acy;. &CHcy;&tcy;&ocy;&bcy;&ycy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&tcy;&softcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &ncy;&iecy;&kcy;&ocy;&ncy;&ucy;&scy;&ncy;&ocy;&gcy;&ocy; &rcy;&iecy;&zhcy;&icy;&mcy;&acy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>--rules-file</code> , &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&icy;&tcy;&iecy; &ecy;&tcy;&ucy; &ocy;&pcy;&tscy;&icy;&yucy; &scy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy;  <code>--no-cone</code> .</span></p> <p><span data-i18n="c07a946bd9536d3e652e61d595c3de12509b627ee41bf8d5825c1b9577bd33ec/4c" data-source="When called with the &lt;code&gt;-z&lt;/code&gt; flag, the format of the paths input on stdin as well as the output paths are \0 terminated and not quoted. Note that this does not apply to the format of the rules passed with the &lt;code&gt;--rules-file&lt;/code&gt; option." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &vcy;&ycy;&zcy;&ocy;&vcy;&iecy; &scy; &fcy;&lcy;&acy;&gcy;&ocy;&mcy;  <code>-z</code>  &fcy;&ocy;&rcy;&mcy;&acy;&tcy; &pcy;&ucy;&tcy;&iecy;&jcy;, &vcy;&vcy;&ocy;&dcy;&icy;&mcy;&ycy;&khcy; &ncy;&acy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&vcy;&ocy;&dcy;, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &vcy;&ycy;&khcy;&ocy;&dcy;&ncy;&ycy;&khcy; &pcy;&ucy;&tcy;&iecy;&jcy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&iecy;&tcy;&scy;&yacy; \0 &icy; &ncy;&iecy; &zcy;&acy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy; &vcy; &kcy;&acy;&vcy;&ycy;&chcy;&kcy;&icy;. &Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &ecy;&tcy;&ocy; &ncy;&iecy; &ocy;&tcy;&ncy;&ocy;&scy;&icy;&tcy;&scy;&yacy; &kcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&ucy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;, &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&vcy;&acy;&iecy;&mcy;&ycy;&khcy; &scy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy;  <code>--rules-file</code> .</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_examples"><span data-i18n="e68ee04dff59551b7d1ae07a2f8a00dc61d841628948da3d2781630706a05e92/38" data-source="Examples" onmousemove="i18n(this)">Examples</span></h2> <div> <div> <dl> <dt id="Documentation/git-sparse-checkout.txt-codegitsparse-checkoutsetMYDIR1SUBDIR2code"> <code>git sparse-checkout set MY/DIR1 SUB/DIR2</code> </dt> <dd> <p><span data-i18n="3fa4bc83caf842bfb781f0e8f9e4f1e7ff24d80cc0c743a34724a0a67cfd2ec9/be" data-source="Change to a sparse checkout with all files (at any depth) under MY/DIR1/ and SUB/DIR2/ present in the working copy (plus all files immediately under MY/ and SUB/ and the toplevel directory). If already in a sparse checkout, change which files are present in the working copy to this new selection. Note that this command will also delete all ignored files in any directory that no longer has either tracked or non-ignored-untracked files present." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&jcy;&dcy;&icy;&tcy;&iecy; &kcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&iecy; &scy;&ocy; &vcy;&scy;&iecy;&mcy;&icy; &fcy;&acy;&jcy;&lcy;&acy;&mcy;&icy; (&ncy;&acy; &lcy;&yucy;&bcy;&ocy;&jcy; &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&iecy;) &vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;&khcy; MY/DIR1/ &icy; SUB/DIR2/, &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&mcy;&icy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&jcy; &kcy;&ocy;&pcy;&icy;&icy; (&pcy;&lcy;&yucy;&scy; &vcy;&scy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &ncy;&iecy;&pcy;&ocy;&scy;&rcy;&iecy;&dcy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ocy; &vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;&khcy; MY/ &icy; SUB/ &icy; &vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy; &vcy;&iecy;&rcy;&khcy;&ncy;&iecy;&gcy;&ocy; &ucy;&rcy;&ocy;&vcy;&ncy;&yacy;). &IEcy;&scy;&lcy;&icy; &vcy;&ycy; &ucy;&zhcy;&iecy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&iecy;&scy;&softcy; &vcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &vcy;&ycy;&dcy;&acy;&chcy;&iecy;, &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;, &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&jcy; &kcy;&ocy;&pcy;&icy;&icy;, &ncy;&acy; &ecy;&tcy;&ocy;&tcy; &ncy;&ocy;&vcy;&ycy;&jcy; &vcy;&ycy;&bcy;&ocy;&rcy;. &Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &ecy;&tcy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &tcy;&acy;&kcy;&zhcy;&iecy; &ucy;&dcy;&acy;&lcy;&icy;&tcy; &vcy;&scy;&iecy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy; &lcy;&yucy;&bcy;&ocy;&mcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy;, &vcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&mcy; &bcy;&ocy;&lcy;&softcy;&shcy;&iecy; &ncy;&iecy;&tcy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&khcy; &icy;&lcy;&icy; &ncy;&iecy;&icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&mcy;&ycy;&khcy;-&ncy;&iecy;&ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;.</span></p> </dd> <dt id="Documentation/git-sparse-checkout.txt-codegitsparse-checkoutdisablecode"> <code>git sparse-checkout disable</code> </dt> <dd> <p><span data-i18n="532a7053afd71d7af7426cfa909222c9fcac4e749b570cfa61b3934176625c06/eb" data-source="Repopulate the working directory with all files, disabling sparse checkouts." onmousemove="i18n(this)">&Zcy;&acy;&ncy;&ocy;&vcy;&ocy; &zcy;&acy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &vcy;&scy;&iecy;&mcy;&icy; &fcy;&acy;&jcy;&lcy;&acy;&mcy;&icy;, &ocy;&tcy;&kcy;&lcy;&yucy;&chcy;&icy;&vcy; &rcy;&iecy;&dcy;&kcy;&icy;&iecy; &icy;&zcy;&vcy;&lcy;&iecy;&chcy;&iecy;&ncy;&icy;&yacy;.</span></p> </dd> <dt id="Documentation/git-sparse-checkout.txt-codegitsparse-checkoutaddSOMEDIRECTORYcode"> <code>git sparse-checkout add SOME/DIR/ECTORY</code> </dt> <dd> <p><span data-i18n="9c7947fa37b1c5c31741621feaa69d1ba0cbc446745cd1ce7a4a70740523ef40/1b" data-source="Add all files under SOME/DIR/ECTORY/ (at any depth) to the sparse checkout, as well as all files immediately under SOME/DIR/ and immediately under SOME/. Must already be in a sparse checkout before using this command." onmousemove="i18n(this)">&Dcy;&ocy;&bcy;&acy;&vcy;&softcy;&tcy;&iecy; &vcy;&scy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy; SOME/DIR/ECTORY/ (&ncy;&acy; &lcy;&yucy;&bcy;&ocy;&jcy; &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&iecy;) &vcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ucy;&yucy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&ucy;, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &vcy;&scy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &ncy;&iecy;&pcy;&ocy;&scy;&rcy;&iecy;&dcy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ocy; &vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy; SOME/DIR/ &icy; &scy;&rcy;&acy;&zcy;&ucy; &vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy; SOME/. &Pcy;&rcy;&iecy;&zhcy;&dcy;&iecy; &chcy;&iecy;&mcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &ecy;&tcy;&ucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;, &ocy;&ncy; &ucy;&zhcy;&iecy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&softcy;&scy;&yacy; &vcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&iecy;.</span></p> </dd> <dt id="Documentation/git-sparse-checkout.txt-codegitsparse-checkoutreapplycode"> <code>git sparse-checkout reapply</code> </dt> <dd> <p><span data-i18n="10a876de12be149d2accf260603788afeecb8bca06204497fc6d6b809a572b76/90" data-source="It is possible for commands to update the working tree in a way that does not respect the selected sparsity directories. This can come from tools external to Git writing files, or even affect Git commands because of either special cases (such as hitting conflicts when merging/rebasing), or because some commands didn&amp;rsquo;t fully support sparse checkouts (e.g. the old &lt;code&gt;recursive&lt;/code&gt; merge backend had only limited support). This command reapplies the existing sparse directory specifications to make the working directory match." onmousemove="i18n(this)">&Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &mcy;&ocy;&gcy;&ucy;&tcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&tcy;&softcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy; &tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ncy;&iecy; &ucy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&tcy;&softcy; &vcy;&ycy;&bcy;&rcy;&acy;&ncy;&ncy;&ycy;&iecy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&icy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&scy;&tcy;&icy;. &Ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&rcy;&ocy;&icy;&scy;&khcy;&ocy;&dcy;&icy;&tcy;&softcy; &icy;&zcy;-&zcy;&acy; &icy;&ncy;&scy;&tcy;&rcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy;, &vcy;&ncy;&iecy;&shcy;&ncy;&icy;&khcy; &pcy;&ocy; &ocy;&tcy;&ncy;&ocy;&shcy;&iecy;&ncy;&icy;&yucy; &kcy; &zcy;&acy;&pcy;&icy;&scy;&icy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;  Git , &icy;&lcy;&icy; &dcy;&acy;&zhcy;&iecy; &vcy;&lcy;&icy;&yacy;&tcy;&softcy; &ncy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  Git  &lcy;&icy;&bcy;&ocy; &icy;&zcy;-&zcy;&acy; &ocy;&scy;&ocy;&bcy;&ycy;&khcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy;&vcy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &vcy;&ocy;&zcy;&ncy;&icy;&kcy;&ncy;&ocy;&vcy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ocy;&vcy; &pcy;&rcy;&icy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&icy;/&pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&icy;), &lcy;&icy;&bcy;&ocy; &icy;&zcy;-&zcy;&acy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &ncy;&iecy; &pcy;&ocy;&lcy;&ncy;&ocy;&scy;&tcy;&softcy;&yucy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&lcy;&icy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ycy;&iecy; &icy;&zcy;&vcy;&lcy;&iecy;&chcy;&iecy;&ncy;&icy;&yacy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &scy;&tcy;&acy;&rcy;&ycy;&jcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy;  <code>recursive</code> ). &icy;&mcy;&iecy;&lcy;&icy; &lcy;&icy;&shcy;&softcy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&iecy;&ncy;&ncy;&ucy;&yucy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&kcy;&ucy;). &Ecy;&tcy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&bcy;&iecy;&scy;&pcy;&iecy;&chcy;&icy;&tcy;&softcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&icy;&iecy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;.</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_internalssparse_checkout"><span data-i18n="5fefb2653303884d8931c232b99ea193a0a71419109db8b18d1d360021c67980/43" data-source="Internals &amp;mdash; sparse checkout" onmousemove="i18n(this)">&Vcy;&ncy;&ucy;&tcy;&rcy;&iecy;&ncy;&ncy;&iecy;&iecy; &ucy;&scy;&tcy;&rcy;&ocy;&jcy;&scy;&tcy;&vcy;&ocy; &mdash; &rcy;&iecy;&dcy;&kcy;&acy;&yacy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&acy;</span></h2> <div> <p><span data-i18n="b0137f3ecc23754269b967b71a575ebf1d001b6e261617e49314f5dea1e4e702/07" data-source="&amp;quot;Sparse checkout&amp;quot; allows populating the working directory sparsely. It uses the skip-worktree bit (see &lt;a href=&quot;git-update-index&quot;&gt;git-update-index[1]&lt;/a&gt;) to tell Git whether a file in the working directory is worth looking at. If the skip-worktree bit is set, and the file is not present in the working tree, then its absence is ignored. Git will avoid populating the contents of those files, which makes a sparse checkout helpful when working in a repository with many files, but only a few are important to the current user." onmousemove="i18n(this)">&quot;Sparse checkout&quot;  &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy; &zcy;&acy;&pcy;&ocy;&lcy;&ncy;&yacy;&tcy;&softcy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;. &Ocy;&ncy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy; &bcy;&icy;&tcy; Skip-worktree (&scy;&mcy;.  <a href="git-update-index.html">git-update-index[1]</a> ), &chcy;&tcy;&ocy;&bcy;&ycy; &scy;&ocy;&ocy;&bcy;&shchcy;&icy;&tcy;&softcy;  Git , &scy;&tcy;&ocy;&icy;&tcy; &lcy;&icy; &pcy;&rcy;&ocy;&scy;&mcy;&acy;&tcy;&rcy;&icy;&vcy;&acy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy;. &IEcy;&scy;&lcy;&icy; &bcy;&icy;&tcy; Skip-worktree &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;, &acy; &fcy;&acy;&jcy;&lcy;&acy; &ncy;&iecy;&tcy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy;, &tcy;&ocy; &iecy;&gcy;&ocy; &ocy;&tcy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&icy;&iecy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy;.  Git  &ncy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &zcy;&acy;&pcy;&ocy;&lcy;&ncy;&yacy;&tcy;&softcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &ecy;&tcy;&icy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &chcy;&tcy;&ocy; &dcy;&iecy;&lcy;&acy;&iecy;&tcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&iecy; &icy;&zcy;&vcy;&lcy;&iecy;&chcy;&iecy;&ncy;&icy;&iecy; &pcy;&ocy;&lcy;&iecy;&zcy;&ncy;&ycy;&mcy; &pcy;&rcy;&icy; &rcy;&acy;&bcy;&ocy;&tcy;&iecy; &vcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy; &scy; &bcy;&ocy;&lcy;&softcy;&shcy;&icy;&mcy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy;&mcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &ncy;&ocy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &icy;&zcy; &ncy;&icy;&khcy; &vcy;&acy;&zhcy;&ncy;&ycy; &dcy;&lcy;&yacy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&gcy;&ocy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;.</span></p> <p><span data-i18n="a61f71a3a7d53b5d2cafd15c697e8d40b945e0800c3f8907fee2ec421720baf5/14" data-source="The &lt;code&gt;$GIT_DIR/info/sparse-checkout&lt;/code&gt; file is used to define the skip-worktree reference bitmap. When Git updates the working directory, it updates the skip-worktree bits in the index based on this file. The files matching the patterns in the file will appear in the working directory, and the rest will not." onmousemove="i18n(this)">&Fcy;&acy;&jcy;&lcy;  <code>$GIT_DIR/info/sparse-checkout</code>  &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&icy;&yacy; &ecy;&tcy;&acy;&lcy;&ocy;&ncy;&ncy;&ocy;&gcy;&ocy; &rcy;&acy;&scy;&tcy;&rcy;&ocy;&vcy;&ocy;&gcy;&ocy; &icy;&zcy;&ocy;&bcy;&rcy;&acy;&zhcy;&iecy;&ncy;&icy;&yacy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; &pcy;&rcy;&ocy;&pcy;&ucy;&scy;&kcy;&acy;. &Kcy;&ocy;&gcy;&dcy;&acy;  Git  &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&tcy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;, &ocy;&ncy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&tcy; &bcy;&icy;&tcy;&ycy; &pcy;&rcy;&ocy;&pcy;&ucy;&scy;&kcy;&acy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&iecy; &ncy;&acy; &ocy;&scy;&ncy;&ocy;&vcy;&iecy; &ecy;&tcy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy;. &Fcy;&acy;&jcy;&lcy;&ycy;, &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&acy;&mcy; &vcy; &fcy;&acy;&jcy;&lcy;&iecy;, &pcy;&ocy;&yacy;&vcy;&yacy;&tcy;&scy;&yacy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy;, &acy; &ocy;&scy;&tcy;&acy;&lcy;&softcy;&ncy;&ycy;&iecy; &mdash; &ncy;&iecy;&tcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_internalsnon_cone_problems"><span data-i18n="cfd85b1b1047d7a746432af188b6d97cb1412bb501bb05b2fca40299fefe052d/31" data-source="Internals &amp;mdash; non-cone problems" onmousemove="i18n(this)">&Vcy;&ncy;&ucy;&tcy;&rcy;&iecy;&ncy;&ncy;&ocy;&scy;&tcy;&icy; &mdash; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy;&ycy;, &ncy;&iecy; &scy;&vcy;&yacy;&zcy;&acy;&ncy;&ncy;&ycy;&iecy; &scy; &kcy;&ocy;&ncy;&ucy;&scy;&ocy;&mcy;</span></h2> <div> <p><span data-i18n="18ca00551c200975295648864cccd3765baf0418591fd428a021e77100e9798f/de" data-source="The &lt;code&gt;$GIT_DIR/info/sparse-checkout&lt;/code&gt; file populated by the &lt;code&gt;set&lt;/code&gt; and &lt;code&gt;add&lt;/code&gt; subcommands is defined to be a bunch of patterns (one per line) using the same syntax as &lt;code&gt;.gitignore&lt;/code&gt; files. In cone mode, these patterns are restricted to matching directories (and users only ever need supply or see directory names), while in non-cone mode any gitignore-style pattern is permitted. Using the full gitignore-style patterns in non-cone mode has a number of shortcomings:" onmousemove="i18n(this)">&Fcy;&acy;&jcy;&lcy;  <code>$GIT_DIR/info/sparse-checkout</code> , &zcy;&acy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&mcy;&ycy;&jcy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;&mcy;&icy;  <code>set</code>  &icy;  <code>add</code> , &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &kcy;&acy;&kcy; &ncy;&acy;&bcy;&ocy;&rcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy; (&pcy;&ocy; &ocy;&dcy;&ncy;&ocy;&mcy;&ucy; &ncy;&acy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy;), &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&shchcy;&icy;&khcy; &tcy;&ocy;&tcy; &zhcy;&iecy; &scy;&icy;&ncy;&tcy;&acy;&kcy;&scy;&icy;&scy;, &chcy;&tcy;&ocy; &icy; &fcy;&acy;&jcy;&lcy;&ycy;  <code>.gitignore</code> . &Vcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; &kcy;&ocy;&ncy;&ucy;&scy;&acy; &ecy;&tcy;&icy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&iecy;&ncy;&ycy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&mcy;&icy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;&mcy;&icy; (&icy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;&mcy; &ncy;&ucy;&zhcy;&ncy;&ocy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&tcy;&softcy; &icy;&lcy;&icy; &pcy;&rcy;&ocy;&scy;&mcy;&acy;&tcy;&rcy;&icy;&vcy;&acy;&tcy;&softcy; &icy;&mcy;&iecy;&ncy;&acy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&vcy;), &tcy;&ocy;&gcy;&dcy;&acy; &kcy;&acy;&kcy; &vcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; &bcy;&iecy;&zcy; &kcy;&ocy;&ncy;&ucy;&scy;&acy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy; &lcy;&yucy;&bcy;&ocy;&jcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy; &vcy; &scy;&tcy;&icy;&lcy;&iecy; gitignore. &Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &pcy;&ocy;&lcy;&ncy;&ycy;&khcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy; &vcy; &scy;&tcy;&icy;&lcy;&iecy; gitignore &vcy; &ncy;&iecy;&kcy;&ocy;&ncy;&ucy;&scy;&ncy;&ocy;&mcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; &icy;&mcy;&iecy;&iecy;&tcy; &rcy;&yacy;&dcy; &ncy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&tcy;&kcy;&ocy;&vcy;:</span></p> <div> <ul> <li> <p><span data-i18n="352ee69e5d87d833ed882b6b348dc0aadb3b9cd1a307e8bbc4a025e1768ed854/fe" data-source="Fundamentally, it makes various worktree-updating processes (pull, merge, rebase, switch, reset, checkout, etc.) require O(N*M) pattern matches, where N is the number of patterns and M is the number of paths in the index. This scales poorly." onmousemove="i18n(this)">&Pcy;&ocy; &scy;&ucy;&tcy;&icy;, &ecy;&tcy;&ocy; &pcy;&rcy;&icy;&vcy;&ocy;&dcy;&icy;&tcy; &kcy; &tcy;&ocy;&mcy;&ucy;, &chcy;&tcy;&ocy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&ncy;&ycy;&iecy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ycy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; (&icy;&zcy;&vcy;&lcy;&iecy;&chcy;&iecy;&ncy;&icy;&iecy;, &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&icy;&iecy;, &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy;, &pcy;&iecy;&rcy;&iecy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&iecy;, &scy;&bcy;&rcy;&ocy;&scy;, &icy;&zcy;&vcy;&lcy;&iecy;&chcy;&iecy;&ncy;&icy;&iecy; &icy; &tcy;. &dcy;.) &tcy;&rcy;&iecy;&bcy;&ucy;&yucy;&tcy; &scy;&ocy;&pcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy; O(N*M), &gcy;&dcy;&iecy; N &mdash; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy;, &acy; M &mdash; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &pcy;&ucy;&tcy;&iecy;&jcy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;. &Ecy;&tcy;&ocy; &pcy;&lcy;&ocy;&khcy;&ocy; &mcy;&acy;&scy;&shcy;&tcy;&acy;&bcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy;.</span></p> </li> <li> <p><span data-i18n="f7b86f9744343cee3b364a7de80c29465fb55b4e7d9130cc38da56d76f0681f2/b7" data-source="Avoiding the scaling issue has to be done via limiting the number of patterns via specifying leading directory name or glob." onmousemove="i18n(this)">&CHcy;&tcy;&ocy;&bcy;&ycy; &icy;&zcy;&bcy;&iecy;&zhcy;&acy;&tcy;&softcy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy;&ycy; &mcy;&acy;&scy;&shcy;&tcy;&acy;&bcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;, &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&icy;&tcy;&softcy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy;, &ucy;&kcy;&acy;&zcy;&acy;&vcy; &vcy;&iecy;&dcy;&ucy;&shchcy;&iecy;&iecy; &icy;&mcy;&yacy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy; &icy;&lcy;&icy; glob.</span></p> </li> <li> <p><span data-i18n="8af66a72e7d06cb653633714bc172f08a17f56f87e7414b54cc1de7bd70aa72c/5c" data-source="Passing globs on the command line is error-prone as users may forget to quote the glob, causing the shell to expand it into all matching files and pass them all individually along to sparse-checkout set/add. While this could also be a problem with e.g. &amp;quot;git grep &amp;mdash; *.c&amp;quot;, mistakes with grep/log/status appear in the immediate output. With sparse-checkout, the mistake gets recorded at the time the sparse-checkout command is run and might not be problematic until the user later switches branches or rebases or merges, thus putting a delay between the user&amp;rsquo;s error and when they have a chance to catch/notice it." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&acy; glob &vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&iecy; &pcy;&ocy;&dcy;&vcy;&iecy;&rcy;&zhcy;&iecy;&ncy;&acy; &ocy;&shcy;&icy;&bcy;&kcy;&acy;&mcy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&icy; &mcy;&ocy;&gcy;&ucy;&tcy; &zcy;&acy;&bcy;&ycy;&tcy;&softcy; &zcy;&acy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&softcy; &iecy;&gcy;&ocy; &vcy; &kcy;&acy;&vcy;&ycy;&chcy;&kcy;&icy;, &vcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&iecy; &chcy;&iecy;&gcy;&ocy; &ocy;&bcy;&ocy;&lcy;&ocy;&chcy;&kcy;&acy; &rcy;&acy;&zcy;&vcy;&iecy;&rcy;&ncy;&iecy;&tcy; &iecy;&gcy;&ocy; &vcy;&ocy; &vcy;&scy;&iecy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &icy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&scy;&tcy; &icy;&khcy; &vcy;&scy;&iecy; &pcy;&ocy; &ocy;&tcy;&dcy;&iecy;&lcy;&softcy;&ncy;&ocy;&scy;&tcy;&icy; &vcy; set/add &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy;. &KHcy;&ocy;&tcy;&yacy; &ecy;&tcy;&ocy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy;&ocy;&jcy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &dcy;&lcy;&yacy;  &quot;git grep &mdash; *.c&quot; , &vcy; &ncy;&iecy;&pcy;&ocy;&scy;&rcy;&iecy;&dcy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ocy;&mcy; &vcy;&ycy;&vcy;&ocy;&dcy;&iecy; &pcy;&ocy;&yacy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &ocy;&shcy;&icy;&bcy;&kcy;&icy; &scy; grep/log/status. &Pcy;&rcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &ocy;&shcy;&icy;&bcy;&kcy;&acy; &fcy;&icy;&kcy;&scy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &vcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &icy; &mcy;&ocy;&zhcy;&iecy;&tcy; &ncy;&iecy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&tcy;&softcy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy; &dcy;&ocy; &tcy;&iecy;&khcy; &pcy;&ocy;&rcy;, &pcy;&ocy;&kcy;&acy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy; &pcy;&ocy;&zcy;&zhcy;&iecy; &ncy;&iecy; &pcy;&iecy;&rcy;&iecy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy; &vcy;&iecy;&tcy;&kcy;&icy;, &ncy;&iecy; &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ucy;&iecy;&tcy; &icy;&lcy;&icy; &ncy;&iecy; &scy;&lcy;&icy;&tcy;, &tcy;&iecy;&mcy; &scy;&acy;&mcy;&ycy;&mcy; &scy;&ocy;&zcy;&dcy;&acy;&vcy;&acy;&yacy; &zcy;&acy;&dcy;&iecy;&rcy;&zhcy;&kcy;&ucy; &mcy;&iecy;&zhcy;&dcy;&ucy; &ocy;&shcy;&icy;&bcy;&kcy;&ocy;&jcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy; &icy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy;&ocy;&mcy;, &kcy;&ocy;&gcy;&dcy;&acy; &ucy; &ncy;&iecy;&gcy;&ocy; &pcy;&ocy;&yacy;&vcy;&icy;&tcy;&scy;&yacy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy; &pcy;&ocy;&jcy;&mcy;&acy;&tcy;&softcy;/&zcy;&acy;&mcy;&iecy;&tcy;&icy;&tcy;&softcy; &ecy;&tcy;&ocy;.</span></p> </li> <li> <p><span data-i18n="fe58b3fac7e8741bfac4a8610db995abd07c3875d3a0525486da49f3816ba53c/a8" data-source="Related to the previous item, sparse-checkout has an &lt;code&gt;add&lt;/code&gt; subcommand but no &lt;code&gt;remove&lt;/code&gt; subcommand. Even if a &lt;code&gt;remove&lt;/code&gt; subcommand were added, undoing an accidental unquoted glob runs the risk of &amp;quot;removing too much&amp;quot;, as it may remove entries that had been included before the accidental add." onmousemove="i18n(this)">&Kcy;&acy;&kcy; &icy; &vcy; &pcy;&rcy;&iecy;&dcy;&ycy;&dcy;&ucy;&shchcy;&iecy;&mcy; &pcy;&ucy;&ncy;&kcy;&tcy;&iecy;, &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&acy;&yacy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&acy; &icy;&mcy;&iecy;&iecy;&tcy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;  <code>add</code> , &ncy;&ocy; &ncy;&iecy; &icy;&mcy;&iecy;&iecy;&tcy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>remove</code> . &Dcy;&acy;&zhcy;&iecy; &iecy;&scy;&lcy;&icy; &bcy;&ycy;&lcy;&acy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&acy; &ZeroWidthSpace;&ZeroWidthSpace;&pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>remove</code> , &ocy;&tcy;&mcy;&iecy;&ncy;&acy; &scy;&lcy;&ucy;&chcy;&acy;&jcy;&ncy;&ocy;&gcy;&ocy; glob &bcy;&iecy;&zcy; &kcy;&acy;&vcy;&ycy;&chcy;&iecy;&kcy; &scy;&ocy;&pcy;&rcy;&yacy;&zhcy;&iecy;&ncy;&acy; &scy; &rcy;&icy;&scy;&kcy;&ocy;&mcy;  &quot;removing too much&quot; , &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &mcy;&ocy;&zhcy;&iecy;&tcy; &ucy;&dcy;&acy;&lcy;&icy;&tcy;&softcy; &zcy;&acy;&pcy;&icy;&scy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &bcy;&ycy;&lcy;&icy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ycy; &dcy;&ocy; &scy;&lcy;&ucy;&chcy;&acy;&jcy;&ncy;&ocy;&gcy;&ocy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;.</span></p> </li> <li> <p><span data-i18n="5d20493e58f6007c284babf306a9dd5f5cc872a9dc8a3d7e2553718ffa73b6ea/3e" data-source="Non-cone mode uses gitignore-style patterns to select what to &lt;strong&gt;include&lt;/strong&gt; (with the exception of negated patterns), while .gitignore files use gitignore-style patterns to select what to &lt;strong&gt;exclude&lt;/strong&gt; (with the exception of negated patterns). The documentation on gitignore-style patterns usually does not talk in terms of matching or non-matching, but on what the user wants to &amp;quot;exclude&amp;quot;. This can cause confusion for users trying to learn how to specify sparse-checkout patterns to get their desired behavior." onmousemove="i18n(this)">&Vcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; &bcy;&iecy;&zcy; &kcy;&ocy;&ncy;&ucy;&scy;&acy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &vcy; &scy;&tcy;&icy;&lcy;&iecy; gitignore &dcy;&lcy;&yacy; &vcy;&ycy;&bcy;&ocy;&rcy;&acy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy; (&zcy;&acy; &icy;&scy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&iecy;&mcy; &ocy;&tcy;&rcy;&icy;&tscy;&acy;&iecy;&mcy;&ycy;&khcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy;), &tcy;&ocy;&gcy;&dcy;&acy; &kcy;&acy;&kcy; &vcy; &fcy;&acy;&jcy;&lcy;&acy;&khcy; .gitignore &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &vcy; &scy;&tcy;&icy;&lcy;&iecy; gitignore &dcy;&lcy;&yacy; &vcy;&ycy;&bcy;&ocy;&rcy;&acy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &icy;&scy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&softcy; (&zcy;&acy; &icy;&scy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&iecy;&mcy; &ocy;&tcy;&rcy;&icy;&tscy;&acy;&iecy;&mcy;&ycy;&khcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy;). &Vcy; &dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&tscy;&icy;&icy; &pcy;&ocy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&acy;&mcy; &vcy; &scy;&tcy;&icy;&lcy;&iecy; gitignore &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &gcy;&ocy;&vcy;&ocy;&rcy;&icy;&tcy;&scy;&yacy; &ncy;&iecy; &ocy; &scy;&ocy;&vcy;&pcy;&acy;&dcy;&iecy;&ncy;&icy;&icy; &icy;&lcy;&icy; &ncy;&iecy;&scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&icy;&icy;, &acy; &ocy; &tcy;&ocy;&mcy;, &chcy;&tcy;&ocy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy; &khcy;&ocy;&chcy;&iecy;&tcy; &ocy;&tcy;  &quot;exclude&quot; . &Ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &vcy;&ycy;&zcy;&vcy;&acy;&tcy;&softcy; &pcy;&ucy;&tcy;&acy;&ncy;&icy;&tscy;&ucy; &ucy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&iecy;&jcy;, &pcy;&ycy;&tcy;&acy;&yucy;&shchcy;&icy;&khcy;&scy;&yacy; &ncy;&acy;&ucy;&chcy;&icy;&tcy;&softcy;&scy;&yacy; &zcy;&acy;&dcy;&acy;&vcy;&acy;&tcy;&softcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &dcy;&lcy;&yacy; &dcy;&ocy;&scy;&tcy;&icy;&zhcy;&iecy;&ncy;&icy;&yacy; &zhcy;&iecy;&lcy;&acy;&iecy;&mcy;&ocy;&gcy;&ocy; &pcy;&ocy;&vcy;&iecy;&dcy;&iecy;&ncy;&icy;&yacy;.</span></p> </li> <li> <p><span data-i18n="07349c2c3f56e9b5de8e84e23f0c6bbfbd3a18dcebbdf5ebe504cfba069c1ac9/f8" data-source="Every other git subcommand that wants to provide &amp;quot;special path pattern matching&amp;quot; of some sort uses pathspecs, but non-cone mode for sparse-checkout uses gitignore patterns, which feels inconsistent." onmousemove="i18n(this)">&Lcy;&yucy;&bcy;&acy;&yacy; &dcy;&rcy;&ucy;&gcy;&acy;&yacy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  git , &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &khcy;&ocy;&chcy;&iecy;&tcy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&icy;&tcy;&softcy; &kcy;&acy;&kcy;&ocy;&jcy;-&lcy;&icy;&bcy;&ocy; &tcy;&icy;&pcy;  &quot;special path pattern matching&quot; , &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy; &scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy; &pcy;&ucy;&tcy;&icy;, &ncy;&ocy; &ncy;&iecy;&kcy;&ocy;&ncy;&ucy;&scy;&ncy;&ycy;&jcy; &rcy;&iecy;&zhcy;&icy;&mcy; &dcy;&lcy;&yacy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;  git , &chcy;&tcy;&ocy; &kcy;&acy;&zhcy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ocy;&rcy;&iecy;&chcy;&icy;&vcy;&ycy;&mcy;.</span></p> </li> <li> <p><span data-i18n="8947fcf9ad4a92a4662584bc4725c16397653198336e6dec944f473bc7a2995c/ae" data-source="It has edge cases where the &amp;quot;right&amp;quot; behavior is unclear. Two examples:" onmousemove="i18n(this)">&IEcy;&scy;&tcy;&softcy; &kcy;&rcy;&acy;&jcy;&ncy;&icy;&iecy; &scy;&lcy;&ucy;&chcy;&acy;&icy;, &kcy;&ocy;&gcy;&dcy;&acy; &pcy;&ocy;&vcy;&iecy;&dcy;&iecy;&ncy;&icy;&iecy;  &quot;right&quot;  &ncy;&iecy;&yacy;&scy;&ncy;&ocy;. &Dcy;&vcy;&acy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&acy;:</span></p> <div> <div> <pre class="hljs language-sql"><span class="hljs-keyword">First</span>, two users <span class="hljs-keyword">are</span> <span class="hljs-keyword">in</span> a subdirectory, <span class="hljs-keyword">and</span> the <span class="hljs-keyword">first</span> runs
   git sparse<span class="hljs-operator">-</span>checkout <span class="hljs-keyword">set</span> <span class="hljs-string">&apos;/toplevel-dir/*.c&apos;</span>
while the <span class="hljs-keyword">second</span> runs
   git sparse<span class="hljs-operator">-</span>checkout <span class="hljs-keyword">set</span> relative<span class="hljs-operator">-</span>dir
Should those arguments be transliterated <span class="hljs-keyword">into</span>
   <span class="hljs-keyword">current</span><span class="hljs-operator">/</span>subdirectory<span class="hljs-operator">/</span>toplevel<span class="hljs-operator">-</span>dir<span class="hljs-comment" title="/*.c
and
   current/subdirectory/relative-dir
before inserting into the sparse-checkout file?  The user who typed
the first command is probably aware that arguments to set/add are
supposed to be patterns in non-cone mode, and probably would not be
happy with such a transliteration.  However, many gitignore-style
patterns are just paths, which might be what the user who typed the
second command was thinking, and they&apos;d be upset if their argument
wasn&apos;t transliterated.">/*.c &icy; current/subdirectory/relative-dir &pcy;&iecy;&rcy;&iecy;&dcy; &vcy;&scy;&tcy;&acy;&vcy;&kcy;&ocy;&jcy; &vcy; &ZeroWidthSpace;&ZeroWidthSpace;&fcy;&acy;&jcy;&lcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy;? &Pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;, &ncy;&acy;&bcy;&rcy;&acy;&vcy;&shcy;&icy;&jcy; &pcy;&iecy;&rcy;&vcy;&ucy;&yucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;, &vcy;&iecy;&rcy;&ocy;&yacy;&tcy;&ncy;&ocy;, &zcy;&ncy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ycy; &dcy;&lcy;&yacy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&kcy;&icy;/&dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy; &bcy;&ycy;&tcy;&softcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&acy;&mcy;&icy; &vcy; &ncy;&iecy;&kcy;&ocy;&ncy;&ucy;&scy;&ncy;&ocy;&mcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy;, &icy;, &vcy;&iecy;&rcy;&ocy;&yacy;&tcy;&ncy;&ocy;, &ncy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &dcy;&ocy;&vcy;&ocy;&lcy;&iecy;&ncy; &tcy;&acy;&kcy;&ocy;&jcy; &tcy;&rcy;&acy;&ncy;&scy;&lcy;&icy;&tcy;&iecy;&rcy;&acy;&tscy;&icy;&iecy;&jcy;. &Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &mcy;&ncy;&ocy;&gcy;&icy;&iecy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &vcy; &scy;&tcy;&icy;&lcy;&iecy; gitignore &mdash; &ecy;&tcy;&ocy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &pcy;&ucy;&tcy;&icy;, &ocy; &chcy;&iecy;&mcy; &mcy;&ocy;&gcy; &dcy;&ucy;&mcy;&acy;&tcy;&softcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;, &ncy;&acy;&bcy;&rcy;&acy;&vcy;&shcy;&icy;&jcy; &vcy;&tcy;&ocy;&rcy;&ucy;&yucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;, &icy; &ocy;&ncy; &bcy;&ycy;&lcy; &bcy;&ycy; &rcy;&acy;&scy;&scy;&tcy;&rcy;&ocy;&iecy;&ncy;, &iecy;&scy;&lcy;&icy; &bcy;&ycy; &iecy;&gcy;&ocy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy; &ncy;&iecy; &bcy;&ycy;&lcy; &tcy;&rcy;&acy;&ncy;&scy;&lcy;&icy;&tcy;&iecy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;.</span></pre> </div> </div> <div> <div> <pre class="hljs language-sql"><span class="hljs-keyword">Second</span>, what should bash<span class="hljs-operator">-</span>completion complete <span class="hljs-keyword">on</span> <span class="hljs-keyword">for</span> <span class="hljs-keyword">set</span><span class="hljs-operator">/</span><span class="hljs-keyword">add</span> commands
<span class="hljs-keyword">for</span> non<span class="hljs-operator">-</span>cone users?  If it suggests paths, <span class="hljs-keyword">is</span> it exacerbating the
problem above?  Also, if it suggests paths, what if the <span class="hljs-keyword">user</span> has a
file <span class="hljs-keyword">or</span> directory that begins <span class="hljs-keyword">with</span> either a <span class="hljs-string">&apos;!&apos;</span> <span class="hljs-keyword">or</span> <span class="hljs-string">&apos;#&apos;</span> <span class="hljs-keyword">or</span> has a <span class="hljs-string">&apos;*&apos;</span>,
<span class="hljs-string">&apos;\&apos;</span>, <span class="hljs-string">&apos;?&apos;</span>, <span class="hljs-string">&apos;[&apos;</span>, <span class="hljs-keyword">or</span> <span class="hljs-string">&apos;]&apos;</span> <span class="hljs-keyword">in</span> its name?  <span class="hljs-keyword">And</span> if it suggests paths, will
it complete &quot;/pro&quot; <span class="hljs-keyword">to</span> &quot;/proc&quot; (<span class="hljs-keyword">in</span> the root filesystem) rather than <span class="hljs-keyword">to</span>
&quot;/progress.txt&quot; <span class="hljs-keyword">in</span> the <span class="hljs-keyword">current</span> directory?  (Note that users <span class="hljs-keyword">are</span>
likely <span class="hljs-keyword">to</span> want <span class="hljs-keyword">to</span> <span class="hljs-keyword">start</span> paths <span class="hljs-keyword">with</span> a <span class="hljs-keyword">leading</span> <span class="hljs-string">&apos;/&apos;</span> <span class="hljs-keyword">in</span> non<span class="hljs-operator">-</span>cone mode,
<span class="hljs-keyword">for</span> the same reason that .gitignore files often have one.)
Completing <span class="hljs-keyword">on</span> files <span class="hljs-keyword">or</span> directories might give nasty surprises <span class="hljs-keyword">in</span>
<span class="hljs-keyword">all</span> these cases.</pre> </div> </div> </li> <li> <p><span data-i18n="877ce39229cfacca94412ccef6a9ecc026a947e790f232d267e5f1e98a3367b1/d2" data-source="The excessive flexibility made other extensions essentially impractical. &lt;code&gt;--sparse-index&lt;/code&gt; is likely impossible in non-cone mode; even if it is somehow feasible, it would have been far more work to implement and may have been too slow in practice. Some ideas for adding coupling between partial clones and sparse checkouts are only practical with a more restricted set of paths as well." onmousemove="i18n(this)">&Icy;&zcy;&lcy;&icy;&shcy;&ncy;&yacy;&yacy; &gcy;&icy;&bcy;&kcy;&ocy;&scy;&tcy;&softcy; &scy;&dcy;&iecy;&lcy;&acy;&lcy;&acy; &dcy;&rcy;&ucy;&gcy;&icy;&iecy; &rcy;&acy;&scy;&shcy;&icy;&rcy;&iecy;&ncy;&icy;&yacy; &pcy;&rcy;&acy;&kcy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy; &ncy;&iecy;&pcy;&rcy;&acy;&kcy;&tcy;&icy;&chcy;&ncy;&ycy;&mcy;&icy;.  <code>--sparse-index</code> , &scy;&kcy;&ocy;&rcy;&iecy;&iecy; &vcy;&scy;&iecy;&gcy;&ocy;, &ncy;&iecy;&vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&iecy;&ncy; &vcy; &ncy;&iecy;&kcy;&ocy;&ncy;&ucy;&scy;&ncy;&ocy;&mcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy;; &dcy;&acy;&zhcy;&iecy; &iecy;&scy;&lcy;&icy; &ecy;&tcy;&ocy; &kcy;&acy;&kcy;&icy;&mcy;-&tcy;&ocy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy; &ocy;&scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&icy;&mcy;&ocy;, &rcy;&iecy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&yacy; &pcy;&ocy;&tcy;&rcy;&iecy;&bcy;&ocy;&vcy;&acy;&lcy;&acy; &bcy;&ycy; &gcy;&ocy;&rcy;&acy;&zcy;&dcy;&ocy; &bcy;&ocy;&lcy;&softcy;&shcy;&iecy; &ucy;&scy;&icy;&lcy;&icy;&jcy; &icy;, &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;, &ncy;&acy; &pcy;&rcy;&acy;&kcy;&tcy;&icy;&kcy;&iecy; &bcy;&ycy;&lcy;&acy; &bcy;&ycy; &scy;&lcy;&icy;&shcy;&kcy;&ocy;&mcy; &mcy;&iecy;&dcy;&lcy;&iecy;&ncy;&ncy;&ocy;&jcy;. &Ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &icy;&dcy;&iecy;&icy; &pcy;&ocy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yucy; &scy;&vcy;&yacy;&zcy;&icy; &mcy;&iecy;&zhcy;&dcy;&ucy; &chcy;&acy;&scy;&tcy;&icy;&chcy;&ncy;&ycy;&mcy;&icy; &kcy;&lcy;&ocy;&ncy;&acy;&mcy;&icy; &icy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ycy;&mcy;&icy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&acy;&mcy;&icy; &pcy;&rcy;&acy;&kcy;&tcy;&icy;&chcy;&ncy;&ycy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&rcy;&icy; &bcy;&ocy;&lcy;&iecy;&iecy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&iecy;&ncy;&ncy;&ocy;&mcy; &ncy;&acy;&bcy;&ocy;&rcy;&iecy; &pcy;&ucy;&tcy;&iecy;&jcy;.</span></p> </li> </ul> </div> <p><span data-i18n="6d7397019fad812de2fc938f048659fa86b58d4fe1d31503bf6bb2e33a4e2b38/f0" data-source="For all these reasons, non-cone mode is deprecated. Please switch to using cone mode." onmousemove="i18n(this)">&Pcy;&ocy; &vcy;&scy;&iecy;&mcy; &ecy;&tcy;&icy;&mcy; &pcy;&rcy;&icy;&chcy;&icy;&ncy;&acy;&mcy; &ncy;&iecy;&kcy;&ocy;&ncy;&ucy;&scy;&ncy;&ycy;&jcy; &rcy;&iecy;&zhcy;&icy;&mcy; &ucy;&scy;&tcy;&acy;&rcy;&iecy;&lcy;. &Pcy;&ocy;&zhcy;&acy;&lcy;&ucy;&jcy;&scy;&tcy;&acy;, &pcy;&iecy;&rcy;&iecy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&iecy;&scy;&softcy; &vcy; &rcy;&iecy;&zhcy;&icy;&mcy; &kcy;&ocy;&ncy;&ucy;&scy;&acy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_internalscone_mode_handling"><span data-i18n="61bebd8110f897a0a1a435296e6937cb5fd056bce443715d61d4209679435e4d/79" data-source="Internals &amp;mdash; cone mode handling" onmousemove="i18n(this)">&Vcy;&ncy;&ucy;&tcy;&rcy;&iecy;&ncy;&ncy;&iecy;&iecy; &ucy;&scy;&tcy;&rcy;&ocy;&jcy;&scy;&tcy;&vcy;&ocy; &mdash; &ocy;&bcy;&rcy;&acy;&bcy;&ocy;&tcy;&kcy;&acy; &rcy;&iecy;&zhcy;&icy;&mcy;&acy; &kcy;&ocy;&ncy;&ucy;&scy;&acy;</span></h2> <div> <p><span data-i18n="f5ca896a109a3d8520fd9b6145dd02dcbbf665f5efbfdcdbc7e177fdbb4d5ea5/01" data-source="The &amp;quot;cone mode&amp;quot;, which is the default, lets you specify only what directories to include. For any directory specified, all paths below that directory will be included, and any paths immediately under leading directories (including the toplevel directory) will also be included. Thus, if you specified the directory Documentation/technical/ then your sparse checkout would contain:" onmousemove="i18n(this)">&quot;cone mode&quot; , &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&mcy;&ycy;&jcy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &tcy;&iecy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &vcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&softcy;. &Dcy;&lcy;&yacy; &lcy;&yucy;&bcy;&ocy;&gcy;&ocy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ocy;&gcy;&ocy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy; &bcy;&ucy;&dcy;&ucy;&tcy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ycy; &vcy;&scy;&iecy; &pcy;&ucy;&tcy;&icy; &ncy;&icy;&zhcy;&iecy; &ecy;&tcy;&ocy;&gcy;&ocy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &vcy;&scy;&iecy; &pcy;&ucy;&tcy;&icy; &ncy;&iecy;&pcy;&ocy;&scy;&rcy;&iecy;&dcy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ocy; &pcy;&ocy;&dcy; &vcy;&iecy;&dcy;&ucy;&shchcy;&icy;&mcy;&icy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;&mcy;&icy; (&vcy;&kcy;&lcy;&yucy;&chcy;&acy;&yacy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &vcy;&iecy;&rcy;&khcy;&ncy;&iecy;&gcy;&ocy; &ucy;&rcy;&ocy;&vcy;&ncy;&yacy;). &Tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;, &iecy;&scy;&lcy;&icy; &vcy;&ycy; &ucy;&kcy;&acy;&zcy;&acy;&lcy;&icy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; Documentation/technical/, &tcy;&ocy; &vcy;&acy;&shcy;&acy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&acy;&yacy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&acy; &bcy;&ucy;&dcy;&iecy;&tcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&tcy;&softcy;:</span></p> <div> <ul> <li> <p><span data-i18n="7ca31a3373a4e17775100957e2361bf6e5933f01e0386f32ed5f8e8ba101fb8c/11" data-source="all files in the toplevel-directory" onmousemove="i18n(this)">&vcy;&scy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy; &vcy;&iecy;&rcy;&khcy;&ncy;&iecy;&gcy;&ocy; &ucy;&rcy;&ocy;&vcy;&ncy;&yacy;</span></p> </li> <li> <p><span data-i18n="7e3940564bd1046424be1dbad4e1da4ce5942846a943411173fdd9defbd5b234/50" data-source="all files immediately under Documentation/" onmousemove="i18n(this)">&vcy;&scy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &scy;&rcy;&acy;&zcy;&ucy; &vcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy; &Dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&tscy;&icy;&yacy;/</span></p> </li> <li> <p><span data-i18n="aeeca789315ac75665617d1b87c933dfef854b06b10eac78195dfc33fd571943/20" data-source="all files at any depth under Documentation/technical/" onmousemove="i18n(this)">&vcy;&scy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &ncy;&acy; &lcy;&yucy;&bcy;&ocy;&jcy; &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&iecy; &vcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy; Documentation/technical/</span></p> </li> </ul> </div> <p><span data-i18n="18b4f7f43ad01067425b92aa7b543f0e21a8a67a3bd54d9b596cb5f8376ce3d2/59" data-source="Also, in cone mode, even if no directories are specified, then the files in the toplevel directory will be included." onmousemove="i18n(this)">&Kcy;&rcy;&ocy;&mcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &vcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; &kcy;&ocy;&ncy;&ucy;&scy;&acy;, &dcy;&acy;&zhcy;&iecy; &iecy;&scy;&lcy;&icy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&icy; &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ycy;, &bcy;&ucy;&dcy;&ucy;&tcy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ycy; &fcy;&acy;&jcy;&lcy;&ycy; &icy;&zcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy; &vcy;&iecy;&rcy;&khcy;&ncy;&iecy;&gcy;&ocy; &ucy;&rcy;&ocy;&vcy;&ncy;&yacy;.</span></p> <p><span data-i18n="15b4c8cc7902bddc44ae00f0a7ef55e967d22748bbb70a675baa816276fc4ff5/c2" data-source="When changing the sparse-checkout patterns in cone mode, Git will inspect each tracked directory that is not within the sparse-checkout cone to see if it contains any untracked files. If all of those files are ignored due to the &lt;code&gt;.gitignore&lt;/code&gt; patterns, then the directory will be deleted. If any of the untracked files within that directory is not ignored, then no deletions will occur within that directory and a warning message will appear. If these files are important, then reset your sparse-checkout definition so they are included, use &lt;code&gt;git add&lt;/code&gt; and &lt;code&gt;git commit&lt;/code&gt; to store them, then remove any remaining files manually to ensure Git can behave optimally." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&icy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &vcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; &kcy;&ocy;&ncy;&ucy;&scy;&acy;  Git  &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&yacy;&tcy;&softcy; &kcy;&acy;&zhcy;&dcy;&ycy;&jcy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &zcy;&acy; &pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&acy;&mcy;&icy; &kcy;&ocy;&ncy;&ucy;&scy;&acy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&icy;&tcy;&softcy;, &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&tcy; &lcy;&icy; &ocy;&ncy; &kcy;&acy;&kcy;&icy;&iecy;-&lcy;&icy;&bcy;&ocy; &ncy;&iecy;&ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;. &IEcy;&scy;&lcy;&icy; &vcy;&scy;&iecy; &ecy;&tcy;&icy; &fcy;&acy;&jcy;&lcy;&ycy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&yucy;&tcy;&scy;&yacy; &icy;&zcy;-&zcy;&acy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy;  <code>.gitignore</code> , &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &bcy;&ucy;&dcy;&iecy;&tcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;. &IEcy;&scy;&lcy;&icy; &kcy;&acy;&kcy;&ocy;&jcy;-&lcy;&icy;&bcy;&ocy; &icy;&zcy; &ncy;&iecy;&ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &vcy; &ecy;&tcy;&ocy;&mcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy; &ncy;&iecy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy;, &tcy;&ocy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&yacy; &vcy; &ecy;&tcy;&ocy;&mcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy; &ncy;&iecy; &pcy;&rcy;&ocy;&icy;&zcy;&ocy;&jcy;&dcy;&iecy;&tcy;, &icy; &pcy;&ocy;&yacy;&vcy;&icy;&tcy;&scy;&yacy; &pcy;&rcy;&iecy;&dcy;&ucy;&pcy;&rcy;&iecy;&zhcy;&dcy;&acy;&yucy;&shchcy;&iecy;&iecy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy;. &IEcy;&scy;&lcy;&icy; &ecy;&tcy;&icy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy;&acy;&zhcy;&ncy;&ycy;, &scy;&bcy;&rcy;&ocy;&scy;&softcy;&tcy;&iecy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&icy;&iecy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&ncy;&icy; &bcy;&ycy;&lcy;&icy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ycy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy;  <code>git add</code>  &icy;  <code>git commit</code>  &dcy;&lcy;&yacy; &icy;&khcy; &khcy;&rcy;&acy;&ncy;&iecy;&ncy;&icy;&yacy;, &zcy;&acy;&tcy;&iecy;&mcy; &ucy;&dcy;&acy;&lcy;&icy;&tcy;&iecy; &vcy;&scy;&iecy; &ocy;&scy;&tcy;&acy;&vcy;&shcy;&icy;&iecy;&scy;&yacy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy;&rcy;&ucy;&chcy;&ncy;&ucy;&yucy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&bcy;&iecy;&scy;&pcy;&iecy;&chcy;&icy;&tcy;&softcy; &ocy;&pcy;&tcy;&icy;&mcy;&acy;&lcy;&softcy;&ncy;&ocy;&iecy; &pcy;&ocy;&vcy;&iecy;&dcy;&iecy;&ncy;&icy;&iecy;  Git .</span></p> <p><span data-i18n="1f8a4fe730661586fdacaa70c645068608f76d9a7081c6e138ab18a8458e734e/ef" data-source="See also the &amp;quot;Internals &amp;mdash; Cone Pattern Set&amp;quot; section to learn how the directories are transformed under the hood into a subset of the Full Pattern Set of sparse-checkout." onmousemove="i18n(this)">&Scy;&mcy;. &tcy;&acy;&kcy;&zhcy;&iecy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;  &quot;Internals &mdash; Cone Pattern Set&quot; , &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&zcy;&ncy;&acy;&tcy;&softcy;, &kcy;&acy;&kcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&icy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &laquo;&pcy;&ocy;&dcy; &kcy;&acy;&pcy;&ocy;&tcy;&ocy;&mcy;&raquo; &vcy; &pcy;&ocy;&dcy;&mcy;&ncy;&ocy;&zhcy;&iecy;&scy;&tcy;&vcy;&ocy; &pcy;&ocy;&lcy;&ncy;&ocy;&gcy;&ocy; &ncy;&acy;&bcy;&ocy;&rcy;&acy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_internalsfull_pattern_set"><span data-i18n="cc5d3a3e0317896319a0e8ba5318f580933725a3996eb1a4dbaf537f91e14758/f5" data-source="Internals &amp;mdash; full pattern set" onmousemove="i18n(this)">&Vcy;&ncy;&ucy;&tcy;&rcy;&iecy;&ncy;&ncy;&ocy;&scy;&tcy;&icy; &mdash; &pcy;&ocy;&lcy;&ncy;&ycy;&jcy; &ncy;&acy;&bcy;&ocy;&rcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy;</span></h2> <div> <p><span data-i18n="2a2563af069ffad298e660d1fbc41948303eedef25c1b263fe7668ea3e99fba3/c5" data-source="The full pattern set allows for arbitrary pattern matches and complicated inclusion/exclusion rules. These can result in O(N*M) pattern matches when updating the index, where N is the number of patterns and M is the number of paths in the index. To combat this performance issue, a more restricted pattern set is allowed when &lt;code&gt;core.sparseCheckoutCone&lt;/code&gt; is enabled." onmousemove="i18n(this)">&Pcy;&ocy;&lcy;&ncy;&ycy;&jcy; &ncy;&acy;&bcy;&ocy;&rcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy; &dcy;&ocy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy; &pcy;&rcy;&ocy;&icy;&zcy;&vcy;&ocy;&lcy;&softcy;&ncy;&ycy;&iecy; &scy;&ocy;&vcy;&pcy;&acy;&dcy;&iecy;&ncy;&icy;&yacy; &scy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&acy;&mcy;&icy; &icy; &scy;&lcy;&ocy;&zhcy;&ncy;&ycy;&iecy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&acy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&yacy;/&icy;&scy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&yacy;. &Ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&rcy;&icy;&vcy;&iecy;&scy;&tcy;&icy; &kcy; &scy;&ocy;&vcy;&pcy;&acy;&dcy;&iecy;&ncy;&icy;&yucy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy; O(N*M) &pcy;&rcy;&icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&icy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy;, &gcy;&dcy;&iecy; N &mdash; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy;, &acy; M &mdash; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &pcy;&ucy;&tcy;&iecy;&jcy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&iecy;. &CHcy;&tcy;&ocy;&bcy;&ycy; &rcy;&iecy;&shcy;&icy;&tcy;&softcy; &ecy;&tcy;&ucy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy;&ucy; &scy; &pcy;&rcy;&ocy;&icy;&zcy;&vcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&scy;&tcy;&softcy;&yucy;, &pcy;&rcy;&icy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ncy;&ocy;&mcy;  <code>core.sparseCheckoutCone</code>  &dcy;&ocy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy; &bcy;&ocy;&lcy;&iecy;&iecy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&iecy;&ncy;&ncy;&ycy;&jcy; &ncy;&acy;&bcy;&ocy;&rcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy;.</span></p> <p><span data-i18n="a3317f5b8789dda229a0cec25d857ecd4aca4694038f1f569212c2052839a05a/79" data-source="The sparse-checkout file uses the same syntax as &lt;code&gt;.gitignore&lt;/code&gt; files; see &lt;a href=&quot;gitignore&quot;&gt;gitignore[5]&lt;/a&gt; for details. Here, though, the patterns are usually being used to select which files to include rather than which files to exclude. (However, it can get a bit confusing since gitignore-style patterns have negations defined by patterns which begin with a &lt;code&gt;!&lt;/code&gt;, so you can also select files to &lt;code&gt;not&lt;/code&gt; include.)" onmousemove="i18n(this)">&Fcy;&acy;&jcy;&lcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy; &tcy;&ocy;&tcy; &zhcy;&iecy; &scy;&icy;&ncy;&tcy;&acy;&kcy;&scy;&icy;&scy;, &chcy;&tcy;&ocy; &icy; &fcy;&acy;&jcy;&lcy;&ycy;  <code>.gitignore</code> ; &pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ocy;&scy;&tcy;&icy; &scy;&mcy;. &vcy;  <a href="gitignore.html">gitignore[5]</a> . &Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &zcy;&dcy;&iecy;&scy;&softcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &vcy;&ycy;&bcy;&ocy;&rcy;&acy; &tcy;&ocy;&gcy;&ocy;, &kcy;&acy;&kcy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy;, &acy; &ncy;&iecy; &kcy;&acy;&kcy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &icy;&scy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy;. (&Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &ncy;&iecy;&mcy;&ncy;&ocy;&gcy;&ocy; &scy;&bcy;&icy;&tcy;&softcy; &scy; &tcy;&ocy;&lcy;&kcy;&ucy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &vcy; &scy;&tcy;&icy;&lcy;&iecy; gitignore &icy;&mcy;&iecy;&yucy;&tcy; &ocy;&tcy;&rcy;&icy;&tscy;&acy;&ncy;&icy;&yacy;, &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&acy;&mcy;&icy;, &ncy;&acy;&chcy;&icy;&ncy;&acy;&yucy;&shchcy;&icy;&mcy;&icy;&scy;&yacy; &scy;  <code>!</code>  , &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &vcy;&ycy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &vcy;&ycy;&bcy;&icy;&rcy;&acy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy;&ycy; &dcy;&lcy;&yacy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&yacy;  <code>not</code> .)</span></p> <p><span data-i18n="4bb783d63c59b3400d6cb08c29a4329bcae516ffe9eb62e2d4d23e9451ee3f22/aa" data-source="For example, to select everything, and then to remove the file &lt;code&gt;unwanted&lt;/code&gt; (so that every file will appear in your working tree except the file named &lt;code&gt;unwanted&lt;/code&gt;):" onmousemove="i18n(this)">&Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &vcy;&ycy;&bcy;&rcy;&acy;&tcy;&softcy; &vcy;&scy;&iecy;, &acy; &zcy;&acy;&tcy;&iecy;&mcy; &ucy;&dcy;&acy;&lcy;&icy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy;  <code>unwanted</code>  (&chcy;&tcy;&ocy;&bcy;&ycy; &vcy; &vcy;&acy;&shcy;&iecy;&mcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy; &pcy;&ocy;&yacy;&vcy;&icy;&lcy;&scy;&yacy; &kcy;&acy;&zhcy;&dcy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;, &kcy;&rcy;&ocy;&mcy;&iecy; &fcy;&acy;&jcy;&lcy;&acy; &scy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy;  <code>unwanted</code> ):</span></p> <div> <div> <pre class="hljs language-bash">git sparse-checkout <span class="hljs-built_in">set</span> --no-cone <span class="hljs-string">&apos;/*&apos;</span> <span class="hljs-string">&apos;!unwanted&apos;</span></pre> </div> </div> <p><span data-i18n="ba843828052e5177eee63c7134a962608553d8be33fd0ce3a4918c25e9fd278e/eb" data-source="These patterns are just placed into the &lt;code&gt;$GIT_DIR/info/sparse-checkout&lt;/code&gt; as-is, so the contents of that file at this point would be" onmousemove="i18n(this)">&Ecy;&tcy;&icy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &pcy;&ocy;&mcy;&iecy;&shchcy;&acy;&yucy;&tcy;&scy;&yacy; &vcy;  <code>$GIT_DIR/info/sparse-checkout</code>  &kcy;&acy;&kcy; &iecy;&scy;&tcy;&softcy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &ecy;&tcy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy; &ncy;&acy; &dcy;&acy;&ncy;&ncy;&ycy;&jcy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy; &bcy;&ucy;&dcy;&iecy;&tcy;</span></p> <div> <div> <pre class="hljs language-diff">/*
<span class="hljs-addition">!unwanted</span></pre> </div> </div> <p><span data-i18n="06b822528a577b4f27f2fb2a8bcdbdd957d87238595de6bf4cf0cd3bf0fc97fe/b7" data-source="See also the &amp;quot;Sparse Checkout&amp;quot; section of &lt;a href=&quot;git-read-tree&quot;&gt;git-read-tree[1]&lt;/a&gt; to learn more about the gitignore-style patterns used in sparse checkouts." onmousemove="i18n(this)">&Scy;&mcy;. &tcy;&acy;&kcy;&zhcy;&iecy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;  &quot;Sparse Checkout&quot;  &scy;&tcy;&acy;&tcy;&softcy;&icy;  <a href="git-read-tree.html">git-read-tree[1]</a> , &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&zcy;&ncy;&acy;&tcy;&softcy; &bcy;&ocy;&lcy;&softcy;&shcy;&iecy; &ocy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&acy;&khcy; &vcy; &scy;&tcy;&icy;&lcy;&iecy; gitignore, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&mcy;&ycy;&khcy; &vcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ycy;&khcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&acy;&khcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_internalscone_pattern_set"><span data-i18n="9ccf4e03a6d71d6482646f1b2e061a24077f7b153d433391c27ac9965f19ef6f/2a" data-source="Internals &amp;mdash; cone pattern set" onmousemove="i18n(this)">&Vcy;&ncy;&ucy;&tcy;&rcy;&iecy;&ncy;&ncy;&icy;&iecy; &dcy;&iecy;&tcy;&acy;&lcy;&icy; &mdash; &ncy;&acy;&bcy;&ocy;&rcy; &kcy;&ocy;&ncy;&ucy;&scy;&ncy;&ycy;&khcy; &ucy;&zcy;&ocy;&rcy;&ocy;&vcy;</span></h2> <div> <p><span data-i18n="8989a5d95308a53e7442aa0e59a265d5eceb4d9d2dadeb77343196e61f2f49c7/9a" data-source="In cone mode, only directories are accepted, but they are translated into the same gitignore-style patterns used in the full pattern set. We refer to the particular patterns used in those mode as being of one of two types:" onmousemove="i18n(this)">&Vcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; &kcy;&ocy;&ncy;&ucy;&scy;&acy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&yucy;&tcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&icy;, &ncy;&ocy; &ocy;&ncy;&icy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &vcy; &tcy;&iecy; &zhcy;&iecy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &vcy; &scy;&tcy;&icy;&lcy;&iecy; gitignore, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &vcy; &pcy;&ocy;&lcy;&ncy;&ocy;&mcy; &ncy;&acy;&bcy;&ocy;&rcy;&iecy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy;. &Mcy;&ycy; &ocy;&tcy;&ncy;&ocy;&scy;&icy;&mcy; &kcy; &kcy;&ocy;&ncy;&kcy;&rcy;&iecy;&tcy;&ncy;&ycy;&mcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&acy;&mcy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&mcy;&ycy;&mcy; &vcy; &ecy;&tcy;&ocy;&mcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy;, &ocy;&dcy;&icy;&ncy; &icy;&zcy; &dcy;&vcy;&ucy;&khcy; &tcy;&icy;&pcy;&ocy;&vcy;:</span></p> <div> <ol> <li> <p><span data-i18n="a678634304f466133333b1d31fd9ac22b35a84a7c692bf36c67ff0af8d116b1f/fe" data-source="&lt;strong&gt;Recursive:&lt;/strong&gt; All paths inside a directory are included." onmousemove="i18n(this)">&Rcy;&iecy;&kcy;&ucy;&rcy;&scy;&icy;&vcy;&ncy;&ycy;&jcy;: &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&yucy;&tcy;&scy;&yacy; &vcy;&scy;&iecy; &pcy;&ucy;&tcy;&icy; &vcy;&ncy;&ucy;&tcy;&rcy;&icy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;.</span></p> </li> <li> <p><span data-i18n="9bd3242e01be4367cd6a927fa6973f9b4848178fc05507035d2f10f338b936fb/e1" data-source="&lt;strong&gt;Parent:&lt;/strong&gt; All files immediately inside a directory are included." onmousemove="i18n(this)">&Rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&jcy;: &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&yucy;&tcy;&scy;&yacy; &vcy;&scy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &ncy;&iecy;&pcy;&ocy;&scy;&rcy;&iecy;&dcy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ocy; &vcy;&ncy;&ucy;&tcy;&rcy;&icy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;.</span></p> </li> </ol> </div> <p><span data-i18n="f4bf7c604fada3800d59b9e7d8eccf897314500b34d62119725066a964922d84/e4" data-source="Since cone mode always includes files at the toplevel, when running &lt;code&gt;git sparse-checkout set&lt;/code&gt; with no directories specified, the toplevel directory is added as a parent pattern. At this point, the sparse-checkout file contains the following patterns:" onmousemove="i18n(this)">&Pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &rcy;&iecy;&zhcy;&icy;&mcy; &kcy;&ocy;&ncy;&ucy;&scy;&acy; &vcy;&scy;&iecy;&gcy;&dcy;&acy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&iecy;&tcy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy;&iecy;&rcy;&khcy;&ncy;&iecy;&gcy;&ocy; &ucy;&rcy;&ocy;&vcy;&ncy;&yacy;, &pcy;&rcy;&icy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&iecy;  <code>git sparse-checkout set</code>  &bcy;&iecy;&zcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&icy;&yacy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &vcy;&iecy;&rcy;&khcy;&ncy;&iecy;&gcy;&ocy; &ucy;&rcy;&ocy;&vcy;&ncy;&yacy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&ocy;&gcy;&ocy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&acy;. &Ncy;&acy; &dcy;&acy;&ncy;&ncy;&ycy;&jcy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy; &fcy;&acy;&jcy;&lcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&tcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&iecy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy;:</span></p> <div> <div> <pre class="hljs language-cpp"><span class="hljs-comment">/*
!/*/</span></pre> </div> </div> <p><span data-i18n="d7ff66d41b8b41191beaf1efacfd979d5d319d165dd3add7a8489915c4fa8b55/30" data-source="This says &amp;quot;include everything immediately under the toplevel directory, but nothing at any level below that.&amp;quot;" onmousemove="i18n(this)">&Zcy;&dcy;&iecy;&scy;&softcy; &ncy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ocy;  &quot;include everything immediately under the toplevel directory, but nothing at any level below that.&quot;</span></p> <p><span data-i18n="4ac9b417f3d282d74437676cad31882e1ce1d7c892042190f25955b965831cdd/f6" data-source="When in cone mode, the &lt;code&gt;git sparse-checkout set&lt;/code&gt; subcommand takes a list of directories. The command &lt;code&gt;git sparse-checkout set A/B/C&lt;/code&gt; sets the directory &lt;code&gt;A/B/C&lt;/code&gt; as a recursive pattern, the directories &lt;code&gt;A&lt;/code&gt; and &lt;code&gt;A/B&lt;/code&gt; are added as parent patterns. The resulting sparse-checkout file is now" onmousemove="i18n(this)">&Vcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; &kcy;&ocy;&ncy;&ucy;&scy;&acy; &scy;&ucy;&bcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>git sparse-checkout set</code>  &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&vcy;. &Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>git sparse-checkout set A/B/C</code>  &ucy;&scy;&tcy;&acy;&ncy;&acy;&vcy;&lcy;&icy;&vcy;&acy;&iecy;&tcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;  <code>A/B/C</code>  &kcy;&acy;&kcy; &rcy;&iecy;&kcy;&ucy;&rcy;&scy;&icy;&vcy;&ncy;&ycy;&jcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;, &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&icy;  <code>A</code>  &icy;  <code>A/B</code>  &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&khcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy;. &Rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&icy;&rcy;&ucy;&yucy;&shchcy;&icy;&jcy; &fcy;&acy;&jcy;&lcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &tcy;&iecy;&pcy;&iecy;&rcy;&softcy; &icy;&mcy;&iecy;&iecy;&tcy; &vcy;&icy;&dcy;</span></p> <div> <div> <pre class="hljs language-javascript"><span class="hljs-comment">/*
!/*/</span>
/A/
!<span class="hljs-regexp">/A/</span>*/
<span class="hljs-regexp">/A/</span>B/
!<span class="hljs-regexp">/A/</span>B<span class="hljs-comment">/*/
/A/B/C/</span></pre> </div> </div> <p><span data-i18n="7467f412146bb4a88134c490ff879811442e0cb244cf05d5ba4b6bafc276180c/67" data-source="Here, order matters, so the negative patterns are overridden by the positive patterns that appear lower in the file." onmousemove="i18n(this)">&Zcy;&dcy;&iecy;&scy;&softcy; &pcy;&ocy;&rcy;&yacy;&dcy;&ocy;&kcy; &icy;&mcy;&iecy;&iecy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &ocy;&tcy;&rcy;&icy;&tscy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &pcy;&iecy;&rcy;&iecy;&ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &pcy;&ocy;&lcy;&ocy;&zhcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&mcy;&icy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&acy;&mcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &pcy;&ocy;&yacy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &ncy;&icy;&zhcy;&iecy; &vcy; &fcy;&acy;&jcy;&lcy;&iecy;.</span></p> <p><span data-i18n="1561361d183c95135fa40c9fae29c3d5a7bc964a1be3dba26611625fef4ac184/7c" data-source="Unless &lt;code&gt;core.sparseCheckoutCone&lt;/code&gt; is explicitly set to &lt;code&gt;false&lt;/code&gt;, Git will parse the sparse-checkout file expecting patterns of these types. Git will warn if the patterns do not match. If the patterns do match the expected format, then Git will use faster hash-based algorithms to compute inclusion in the sparse-checkout. If they do not match, git will behave as though &lt;code&gt;core.sparseCheckoutCone&lt;/code&gt; was false, regardless of its setting." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &dcy;&lcy;&yacy;  <code>core.sparseCheckoutCone</code>  &yacy;&vcy;&ncy;&ocy; &ncy;&iecy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;  <code>false</code>  ,  Git  &bcy;&ucy;&dcy;&iecy;&tcy; &acy;&ncy;&acy;&lcy;&icy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy;, &ocy;&zhcy;&icy;&dcy;&acy;&yacy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &ecy;&tcy;&icy;&khcy; &tcy;&icy;&pcy;&ocy;&vcy;.  Git  &pcy;&rcy;&iecy;&dcy;&ucy;&pcy;&rcy;&iecy;&dcy;&icy;&tcy;, &iecy;&scy;&lcy;&icy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &ncy;&iecy; &scy;&ocy;&vcy;&pcy;&acy;&dcy;&acy;&yucy;&tcy;. &IEcy;&scy;&lcy;&icy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy; &ocy;&zhcy;&icy;&dcy;&acy;&iecy;&mcy;&ocy;&mcy;&ucy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&ucy;, &tcy;&ocy;  Git  &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &bcy;&ocy;&lcy;&iecy;&iecy; &bcy;&ycy;&scy;&tcy;&rcy;&ycy;&iecy; &acy;&lcy;&gcy;&ocy;&rcy;&icy;&tcy;&mcy;&ycy; &ncy;&acy; &ocy;&scy;&ncy;&ocy;&vcy;&iecy; &khcy;&iecy;&shcy;-&fcy;&ucy;&ncy;&kcy;&tscy;&icy;&icy; &dcy;&lcy;&yacy; &vcy;&ycy;&chcy;&icy;&scy;&lcy;&iecy;&ncy;&icy;&yacy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&yacy; &vcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ucy;&yucy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&ucy;. &IEcy;&scy;&lcy;&icy; &ocy;&ncy;&icy; &ncy;&iecy; &scy;&ocy;&vcy;&pcy;&acy;&dcy;&acy;&yucy;&tcy;,  git  &bcy;&ucy;&dcy;&iecy;&tcy; &vcy;&iecy;&scy;&tcy;&icy; &scy;&iecy;&bcy;&yacy; &tcy;&acy;&kcy;, &kcy;&acy;&kcy; &iecy;&scy;&lcy;&icy; &bcy;&ycy;  <code>core.sparseCheckoutCone</code>  &bcy;&ycy;&lcy; &lcy;&ocy;&zhcy;&ncy;&ycy;&mcy;, &ncy;&iecy;&zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy; &ocy;&tcy; &iecy;&gcy;&ocy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&icy;.</span></p> <p><span data-i18n="75b49c0752e29de321c807008610a06d5733596a6c64f91eca3dd8903ac47fe9/3e" data-source="In the cone mode case, despite the fact that full patterns are written to the $GIT_DIR/info/sparse-checkout file, the &lt;code&gt;git sparse-checkout
list&lt;/code&gt; subcommand will list the directories that define the recursive patterns. For the example sparse-checkout file above, the output is as follows:" onmousemove="i18n(this)">&Vcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &rcy;&iecy;&zhcy;&icy;&mcy;&acy; &kcy;&ocy;&ncy;&ucy;&scy;&acy;, &ncy;&iecy;&scy;&mcy;&ocy;&tcy;&rcy;&yacy; &ncy;&acy; &tcy;&ocy;, &chcy;&tcy;&ocy; &pcy;&ocy;&lcy;&ncy;&ycy;&iecy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &vcy; &fcy;&acy;&jcy;&lcy; $GIT_DIR/info/sparse-checkout, &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>git sparse-checkout
list</code>  &vcy;&ycy;&vcy;&ocy;&dcy;&icy;&tcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&vcy;, &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&yucy;&shchcy;&icy;&khcy; &rcy;&iecy;&kcy;&ucy;&rcy;&scy;&icy;&vcy;&ncy;&ycy;&iecy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy;. &Dcy;&lcy;&yacy; &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &vcy;&ycy;&shcy;&iecy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&acy; &fcy;&acy;&jcy;&lcy;&acy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &vcy;&ycy;&vcy;&ocy;&dcy; &vcy;&ycy;&gcy;&lcy;&yacy;&dcy;&icy;&tcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;:</span></p> <div> <div> <pre class="hljs language-ruby"><span class="hljs-variable">$ </span>git sparse-checkout list
A/B/C</pre> </div> </div> <p><span data-i18n="a3e77d82e84dd71c881804727ed8762b525c4ca895841110b7defe2b2e9a1a0d/cc" data-source="If &lt;code&gt;core.ignoreCase=true&lt;/code&gt;, then the pattern-matching algorithm will use a case-insensitive check. This corrects for case mismatched filenames in the &lt;code&gt;git sparse-checkout set&lt;/code&gt; command to reflect the expected cone in the working directory." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy;  <code>core.ignoreCase=true</code>  , &tcy;&ocy; &acy;&lcy;&gcy;&ocy;&rcy;&icy;&tcy;&mcy; &scy;&ocy;&pcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &scy; &ocy;&bcy;&rcy;&acy;&zcy;&tscy;&ocy;&mcy; &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&ucy; &bcy;&iecy;&zcy; &ucy;&chcy;&iecy;&tcy;&acy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&acy;. &Ecy;&tcy;&ocy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &ncy;&iecy;&scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&icy;&iecy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&acy; &icy;&mcy;&iecy;&ncy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&iecy;  <code>git sparse-checkout set</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&tcy;&rcy;&acy;&zcy;&icy;&tcy;&softcy; &ocy;&zhcy;&icy;&dcy;&acy;&iecy;&mcy;&ycy;&jcy; &kcy;&ocy;&ncy;&ucy;&scy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_internalssubmodules"><span data-i18n="d78e103de257e65f2032d8bff4b7b70ab8015b77fe1fd6caff72601aa95f1529/cf" data-source="Internals &amp;mdash; submodules" onmousemove="i18n(this)">&Vcy;&ncy;&ucy;&tcy;&rcy;&iecy;&ncy;&ncy;&ocy;&scy;&tcy;&icy; &mdash; &scy;&ucy;&bcy;&mcy;&ocy;&dcy;&ucy;&lcy;&icy;</span></h2> <div> <p><span data-i18n="e1c7719d2bd05a9ea268a88b44929ec0915851cf2e0f27ed76643ab1638ef35b/62" data-source="If your repository contains one or more submodules, then submodules are populated based on interactions with the &lt;code&gt;git submodule&lt;/code&gt; command. Specifically, &lt;code&gt;git submodule init -- &amp;lt;path&amp;gt;&lt;/code&gt; will ensure the submodule at &lt;code&gt;&amp;lt;path&amp;gt;&lt;/code&gt; is present, while &lt;code&gt;git submodule deinit [-f] -- &amp;lt;path&amp;gt;&lt;/code&gt; will remove the files for the submodule at &lt;code&gt;&amp;lt;path&amp;gt;&lt;/code&gt; (including any untracked files, uncommitted changes, and unpushed history). Similar to how sparse-checkout removes files from the working tree but still leaves entries in the index, deinitialized submodules are removed from the working directory but still have an entry in the index." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &vcy;&acy;&shcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&tcy; &ocy;&dcy;&icy;&ncy; &icy;&lcy;&icy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&ocy;&dcy;&mcy;&ocy;&dcy;&ucy;&lcy;&iecy;&jcy;, &tcy;&ocy; &pcy;&ocy;&dcy;&mcy;&ocy;&dcy;&ucy;&lcy;&icy; &zcy;&acy;&pcy;&ocy;&lcy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &ncy;&acy; &ocy;&scy;&ncy;&ocy;&vcy;&iecy; &vcy;&zcy;&acy;&icy;&mcy;&ocy;&dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&yacy; &scy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ocy;&jcy;  <code>git submodule</code> . &Vcy; &chcy;&acy;&scy;&tcy;&ncy;&ocy;&scy;&tcy;&icy;,  <code>git submodule init -- &lt;path&gt;</code>  &ocy;&bcy;&iecy;&scy;&pcy;&iecy;&chcy;&icy;&tcy; &ncy;&acy;&lcy;&icy;&chcy;&icy;&iecy; &scy;&ucy;&bcy;&mcy;&ocy;&dcy;&ucy;&lcy;&yacy;  <code>&lt;path&gt;</code> , &acy;  <code>git submodule deinit [-f] -- &lt;path&gt;</code>  &ucy;&dcy;&acy;&lcy;&icy;&tcy; &fcy;&acy;&jcy;&lcy;&ycy; &scy;&ucy;&bcy;&mcy;&ocy;&dcy;&ucy;&lcy;&yacy;  <code>&lt;path&gt;</code>  (&vcy;&kcy;&lcy;&yucy;&chcy;&acy;&yacy; &vcy;&scy;&iecy; &ncy;&iecy;&ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;, &ncy;&iecy;&zcy;&acy;&fcy;&icy;&kcy;&scy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &icy; &ncy;&iecy;&ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ucy;&yucy; &icy;&scy;&tcy;&ocy;&rcy;&icy;&yucy;). &Pcy;&ocy;&dcy;&ocy;&bcy;&ncy;&ocy; &tcy;&ocy;&mcy;&ucy;, &kcy;&acy;&kcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&acy;&yacy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&acy; &ucy;&dcy;&acy;&lcy;&yacy;&iecy;&tcy; &fcy;&acy;&jcy;&lcy;&ycy; &icy;&zcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;, &ncy;&ocy; &pcy;&ocy;-&pcy;&rcy;&iecy;&zhcy;&ncy;&iecy;&mcy;&ucy; &ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &zcy;&acy;&pcy;&icy;&scy;&icy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&iecy;, &dcy;&iecy;&icy;&ncy;&icy;&tscy;&icy;&acy;&lcy;&icy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&iecy; &pcy;&ocy;&dcy;&mcy;&ocy;&dcy;&ucy;&lcy;&icy; &ucy;&dcy;&acy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &icy;&zcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;, &ncy;&ocy; &vcy;&scy;&iecy; &iecy;&shchcy;&iecy; &icy;&mcy;&iecy;&yucy;&tcy; &zcy;&acy;&pcy;&icy;&scy;&softcy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&iecy;.</span></p> <p><span data-i18n="1fbd36f792c2cdc40cc73804f5064273a191911eb2613c3a5367af3f8fdb7b63/6e" data-source="Since submodules may have unpushed changes or untracked files, removing them could result in data loss. Thus, changing sparse inclusion/exclusion rules will not cause an already checked out submodule to be removed from the working copy. Said another way, just as &lt;code&gt;checkout&lt;/code&gt; will not cause submodules to be automatically removed or initialized even when switching between branches that remove or add submodules, using &lt;code&gt;sparse-checkout&lt;/code&gt; to reduce or expand the scope of &amp;quot;interesting&amp;quot; files will not cause submodules to be automatically deinitialized or initialized either." onmousemove="i18n(this)">&Pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &pcy;&ocy;&dcy;&mcy;&ocy;&dcy;&ucy;&lcy;&icy; &mcy;&ocy;&gcy;&ucy;&tcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&tcy;&softcy; &ncy;&iecy;&ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &icy;&lcy;&icy; &ncy;&iecy;&ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;, &icy;&khcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&rcy;&icy;&vcy;&iecy;&scy;&tcy;&icy; &kcy; &pcy;&ocy;&tcy;&iecy;&rcy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;. &Tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;, &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ycy;&khcy; &pcy;&rcy;&acy;&vcy;&icy;&lcy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&yacy;/&icy;&scy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&yacy; &ncy;&iecy; &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&tcy; &kcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&yucy; &ucy;&zhcy;&iecy; &icy;&zcy;&vcy;&lcy;&iecy;&chcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &pcy;&ocy;&dcy;&mcy;&ocy;&dcy;&ucy;&lcy;&yacy; &icy;&zcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&jcy; &kcy;&ocy;&pcy;&icy;&icy;. &Dcy;&rcy;&ucy;&gcy;&icy;&mcy;&icy; &scy;&lcy;&ocy;&vcy;&acy;&mcy;&icy;, &tcy;&acy;&kcy; &zhcy;&iecy;, &kcy;&acy;&kcy;  <code>checkout</code>  &ncy;&iecy; &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&tcy; &kcy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&mcy;&ucy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&yucy; &icy;&lcy;&icy; &icy;&ncy;&icy;&tscy;&icy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &pcy;&ocy;&dcy;&mcy;&ocy;&dcy;&ucy;&lcy;&iecy;&jcy; &dcy;&acy;&zhcy;&iecy; &pcy;&rcy;&icy; &pcy;&iecy;&rcy;&iecy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&icy; &mcy;&iecy;&zhcy;&dcy;&ucy; &vcy;&iecy;&tcy;&vcy;&yacy;&mcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ucy;&dcy;&acy;&lcy;&yacy;&yucy;&tcy; &icy;&lcy;&icy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy; &pcy;&ocy;&dcy;&mcy;&ocy;&dcy;&ucy;&lcy;&icy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy;  <code>sparse-checkout</code>  &dcy;&lcy;&yacy; &ucy;&mcy;&iecy;&ncy;&softcy;&shcy;&iecy;&ncy;&icy;&yacy; &icy;&lcy;&icy; &rcy;&acy;&scy;&shcy;&icy;&rcy;&iecy;&ncy;&icy;&yacy; &ocy;&bcy;&lcy;&acy;&scy;&tcy;&icy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;  &quot;interesting&quot;  &ncy;&iecy; &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&tcy; &kcy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&jcy; &dcy;&iecy;&icy;&ncy;&icy;&tscy;&icy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &icy;&lcy;&icy; &icy;&ncy;&icy;&tscy;&icy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &pcy;&ocy;&dcy;&mcy;&ocy;&dcy;&ucy;&lcy;&iecy;&jcy;. .</span></p> <p><span data-i18n="2b90a81660a6472f3ee895706a012dad54e0d27a6b2a504251419c0b9ec9168c/79" data-source="Further, the above facts mean that there are multiple reasons that &amp;quot;tracked&amp;quot; files might not be present in the working copy: sparsity pattern application from sparse-checkout, and submodule initialization state. Thus, commands like &lt;code&gt;git grep&lt;/code&gt; that work on tracked files in the working copy may return results that are limited by either or both of these restrictions." onmousemove="i18n(this)">&Kcy;&rcy;&ocy;&mcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&ncy;&ncy;&ycy;&iecy; &vcy;&ycy;&shcy;&iecy; &fcy;&acy;&kcy;&tcy;&ycy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&yucy;&tcy;, &chcy;&tcy;&ocy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&rcy;&icy;&chcy;&icy;&ncy;, &pcy;&ocy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&mcy; &fcy;&acy;&jcy;&lcy;&ycy;  &quot;tracked&quot;  &mcy;&ocy;&gcy;&ucy;&tcy; &ocy;&tcy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&tcy;&softcy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&jcy; &kcy;&ocy;&pcy;&icy;&icy;: &pcy;&rcy;&icy;&lcy;&ocy;&zhcy;&iecy;&ncy;&icy;&iecy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&acy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&scy;&tcy;&icy; &icy;&zcy; &rcy;&acy;&zcy;&rcy;&iecy;&zhcy;&iecy;&ncy;&ncy;&ocy;&jcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &icy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy; &icy;&ncy;&icy;&tscy;&icy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &pcy;&ocy;&dcy;&mcy;&ocy;&dcy;&ucy;&lcy;&yacy;. &Tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;, &tcy;&acy;&kcy;&icy;&iecy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;, &kcy;&acy;&kcy;  <code>git grep</code> , &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&yucy;&tcy; &scy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&mcy;&icy; &fcy;&acy;&jcy;&lcy;&acy;&mcy;&icy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&jcy; &kcy;&ocy;&pcy;&icy;&icy;, &mcy;&ocy;&gcy;&ucy;&tcy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&acy;&tcy;&softcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&ycy;, &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&iecy;&ncy;&ncy;&ycy;&iecy; &ocy;&dcy;&ncy;&icy;&mcy; &icy;&lcy;&icy; &ocy;&bcy;&ocy;&icy;&mcy;&icy; &ecy;&tcy;&icy;&mcy;&icy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&iecy;&ncy;&icy;&yacy;&mcy;&icy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_see_also"><span data-i18n="2fa97693b70fa87b95b2d1bdf9558e4ac65d5e82d145f13a03849c4d9c4957a9/40" data-source="See also" onmousemove="i18n(this)">See also</span></h2> <div> <p> <span data-i18n="5c529991f2046dad9f3c7d8a644c965bdf9899352993d24d835b33380233a764/41" data-source="&lt;a href=&quot;git-read-tree&quot;&gt;git-read-tree[1]&lt;/a&gt;&lt;a href=&quot;gitignore&quot;&gt;gitignore[5]&lt;/a&gt;" onmousemove="i18n(this)"><a href="git-read-tree.html">git-read-tree[1]</a><a href="gitignore.html">gitignore[5]</a></span></p> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/git-sparse-checkout">https://git-scm.com/docs/git-sparse-checkout</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                            <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-stash.html">
                            git stash                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-status.html">
                            git status                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-stripspace.html">
                            git stripspace                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-submodule.html">
                            git submodule                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-svn.html">
                            git svn                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-switch.html">
                            git switch                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-symbolic-ref.html">
                            git symbolic-ref                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                   <ins class="adsbygoogle"
        style="display:block; text-align:center;"
        data-ad-layout="in-article"
        data-ad-format="fluid"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="3777011170"></ins>
<script>
    (adsbygoogle = window.adsbygoogle || []).push({});
</script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="git-sparse-checkout.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>